JType 0.1.1-redhat-2

com.googlecode.jtype
Class Generics

java.lang.Object
  extended by com.googlecode.jtype.Generics

public final class Generics
extends Object

Factory for creating common generics.

Version:
$Id: Generics.java 2 2009-02-02 22:28:39Z markhobson $
Author:
Mark Hobson
See Also:
Generic

Method Summary
static
<E> Generic<Collection<E>>
collection(Class<E> elementClass)
           
static
<T> Generic<Comparator<T>>
comparator(Class<T> type)
           
static
<E> Generic<Enumeration<E>>
enumeration(Class<E> elementClass)
           
static
<E> Generic<Iterator<E>>
iterator(Class<E> elementClass)
           
static
<E> Generic<List<E>>
list(Class<E> elementClass)
           
static
<E> Generic<ListIterator<E>>
listIterator(Class<E> elementClass)
           
static
<K,V> Generic<Map<K,V>>
map(Class<K> keyClass, Class<V> valueClass)
           
static
<E> Generic<Queue<E>>
queue(Class<E> elementClass)
           
static
<E> Generic<Set<E>>
set(Class<E> elementClass)
           
static
<K,V> Generic<SortedMap<K,V>>
sortedMap(Class<K> keyClass, Class<V> valueClass)
           
static
<E> Generic<SortedSet<E>>
sortedSet(Class<E> elementClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

comparator

public static <T> Generic<Comparator<T>> comparator(Class<T> type)

enumeration

public static <E> Generic<Enumeration<E>> enumeration(Class<E> elementClass)

iterator

public static <E> Generic<Iterator<E>> iterator(Class<E> elementClass)

listIterator

public static <E> Generic<ListIterator<E>> listIterator(Class<E> elementClass)

collection

public static <E> Generic<Collection<E>> collection(Class<E> elementClass)

set

public static <E> Generic<Set<E>> set(Class<E> elementClass)

sortedSet

public static <E> Generic<SortedSet<E>> sortedSet(Class<E> elementClass)

list

public static <E> Generic<List<E>> list(Class<E> elementClass)

map

public static <K,V> Generic<Map<K,V>> map(Class<K> keyClass,
                                          Class<V> valueClass)

sortedMap

public static <K,V> Generic<SortedMap<K,V>> sortedMap(Class<K> keyClass,
                                                      Class<V> valueClass)

queue

public static <E> Generic<Queue<E>> queue(Class<E> elementClass)

JType 0.1.1-redhat-2

Copyright © 2008-2012 JBoss by Red Hat. All Rights Reserved.