org.riotfamily.common.util
Class Generics
java.lang.Object
org.riotfamily.common.util.Generics
public final class Generics
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newHashMap
public static <K,V> HashMap<K,V> newHashMap()
newHashMap
public static <K,V> HashMap<K,V> newHashMap(Map<? extends K,? extends V> m)
newLinkedHashMap
public static <K,V> LinkedHashMap<K,V> newLinkedHashMap()
newLinkedHashMap
public static <K,V> LinkedHashMap<K,V> newLinkedHashMap(Map<? extends K,? extends V> m)
newTreeMap
public static <K,V> TreeMap<K,V> newTreeMap()
newTreeMap
public static <K,V> TreeMap<K,V> newTreeMap(Map<? extends K,? extends V> m)
newConcurrentHashMap
public static <K,V> java.util.concurrent.ConcurrentHashMap<K,V> newConcurrentHashMap()
newConcurrentHashMap
public static <K,V> java.util.concurrent.ConcurrentHashMap<K,V> newConcurrentHashMap(Map<? extends K,? extends V> m)
newArrayList
public static <V> ArrayList<V> newArrayList()
newArrayList
public static <V> ArrayList<V> newArrayList(int initialCapacity)
newArrayList
public static <V> ArrayList<V> newArrayList(Collection<? extends V> c)
newLinkedList
public static <V> LinkedList<V> newLinkedList()
newLinkedList
public static <V> LinkedList<V> newLinkedList(Collection<? extends V> c)
newSynchronizedLinkedList
public static <V> List<V> newSynchronizedLinkedList()
newHashSet
public static <V> HashSet<V> newHashSet()
newHashSet
public static <V> HashSet<V> newHashSet(Collection<? extends V> c)
newSynchronizedHashSet
public static <V> Set<V> newSynchronizedHashSet(Collection<? extends V> c)
newLinkedHashSet
public static <V> LinkedHashSet<V> newLinkedHashSet()
newLinkedHashSet
public static <V> LinkedHashSet<V> newLinkedHashSet(Collection<? extends V> c)
newTreeSet
public static <V> TreeSet<V> newTreeSet()
newTreeSet
public static <V> TreeSet<V> newTreeSet(Comparator<? super V> comparator)
newThreadLocal
public static <V> ThreadLocal<V> newThreadLocal()
getClass
public static Class<?> getClass(Type type)
getTypeArguments
public static <T> List<Class<?>> getTypeArguments(Class<T> baseClass,
Class<?> childClass)