Package net.ontopia.utils
Class CollectionFactory
java.lang.Object
net.ontopia.utils.CollectionFactory
- All Implemented Interfaces:
Serializable,CollectionFactoryIF
INTERNAL: A collection factory that returns non-synchronized standard
java.util collection objects.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> List<T>INTERNAL: Creates a list that is expected to contain a large number of objects.<V,K> Map<V, K> INTERNAL: Creates a map that is expected to contain a large number of objects.<T> Set<T>INTERNAL: Creates a set that is expected to contain a large number of objects.<T> List<T>INTERNAL: Creates a list that is expected to contain a small number of objects.<V,K> Map<V, K> INTERNAL: Creates a map that is expected to contain a small number of objects.<T> Set<T>INTERNAL: Creates a set that is expected to contain a small number of objects.
-
Field Details
-
initsize
protected int initsize
-
-
Constructor Details
-
CollectionFactory
public CollectionFactory() -
CollectionFactory
public CollectionFactory(int initsize)
-
-
Method Details
-
makeSmallSet
Description copied from interface:CollectionFactoryIFINTERNAL: Creates a set that is expected to contain a small number of objects.- Specified by:
makeSmallSetin interfaceCollectionFactoryIF
-
makeLargeSet
Description copied from interface:CollectionFactoryIFINTERNAL: Creates a set that is expected to contain a large number of objects.- Specified by:
makeLargeSetin interfaceCollectionFactoryIF
-
makeSmallMap
Description copied from interface:CollectionFactoryIFINTERNAL: Creates a map that is expected to contain a small number of objects.- Specified by:
makeSmallMapin interfaceCollectionFactoryIF
-
makeLargeMap
Description copied from interface:CollectionFactoryIFINTERNAL: Creates a map that is expected to contain a large number of objects.- Specified by:
makeLargeMapin interfaceCollectionFactoryIF
-
makeSmallList
Description copied from interface:CollectionFactoryIFINTERNAL: Creates a list that is expected to contain a small number of objects.- Specified by:
makeSmallListin interfaceCollectionFactoryIF
-
makeLargeList
Description copied from interface:CollectionFactoryIFINTERNAL: Creates a list that is expected to contain a large number of objects.- Specified by:
makeLargeListin interfaceCollectionFactoryIF
-