com.googlecode.jtype
Class Generics
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
Copyright © 2008-2012 JBoss by Red Hat. All Rights Reserved.