Package org.jboss.util.collection
Class CollectionsFactory
- java.lang.Object
-
- org.jboss.util.collection.CollectionsFactory
-
public class CollectionsFactory extends java.lang.ObjectCollections factory.- Version:
- $Revision$
-
-
Constructor Summary
Constructors Constructor Description CollectionsFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K,V>
java.util.Map<K,V>createConcurrentReaderMap()Defines the concurrent map implementationstatic <T> java.util.Set<T>createConcurrentReferenceSet()Defines the concurrent reference set implementationstatic <T> java.util.Set<T>createConcurrentSet()Defines the concurrent set implementationstatic <T> java.util.List<T>createCopyOnWriteList()Defines the concurrent list implementationstatic <T> java.util.Set<T>createCopyOnWriteSet()Defines the concurrent set implementationstatic <T> java.util.List<T>createLazyList()Defines the list implementationstatic <K,V>
java.util.Map<K,V>createLazyMap()Defines the map implementationstatic <T> java.util.Set<T>createLazySet()Defines the set implementation
-
-
-
Method Detail
-
createLazyMap
public static final <K,V> java.util.Map<K,V> createLazyMap()
Defines the map implementation- Type Parameters:
K- the key typeV- the value type- Returns:
- the map
-
createLazyList
public static final <T> java.util.List<T> createLazyList()
Defines the list implementation- Type Parameters:
T- the type- Returns:
- the list
-
createLazySet
public static final <T> java.util.Set<T> createLazySet()
Defines the set implementation- Type Parameters:
T- the type- Returns:
- the set
-
createConcurrentReaderMap
public static final <K,V> java.util.Map<K,V> createConcurrentReaderMap()
Defines the concurrent map implementation- Type Parameters:
K- the key typeV- the value type- Returns:
- the map
-
createCopyOnWriteList
public static final <T> java.util.List<T> createCopyOnWriteList()
Defines the concurrent list implementation- Type Parameters:
T- the type- Returns:
- the list
-
createCopyOnWriteSet
public static final <T> java.util.Set<T> createCopyOnWriteSet()
Defines the concurrent set implementation- Type Parameters:
T- the type- Returns:
- the set
-
createConcurrentSet
public static final <T> java.util.Set<T> createConcurrentSet()
Defines the concurrent set implementation- Type Parameters:
T- the type- Returns:
- the set
-
createConcurrentReferenceSet
public static final <T> java.util.Set<T> createConcurrentReferenceSet()
Defines the concurrent reference set implementation- Type Parameters:
T- the type- Returns:
- the set
-
-