org.riotfamily.common.util
Class Generics

java.lang.Object
  extended by org.riotfamily.common.util.Generics

public final class Generics
extends Object


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

Method Detail

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)