Package net.ontopia.utils
Class CollectionFactory
- java.lang.Object
-
- net.ontopia.utils.CollectionFactory
-
- All Implemented Interfaces:
Serializable
,CollectionFactoryIF
public class CollectionFactory extends Object implements CollectionFactoryIF, Serializable
INTERNAL: A collection factory that returns non-synchronized standard java.util collection objects.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
initsize
-
Constructor Summary
Constructors Constructor Description CollectionFactory()
CollectionFactory(int initsize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> List<T>
makeLargeList()
INTERNAL: Creates a list that is expected to contain a large number of objects.<V,K>
Map<V,K>makeLargeMap()
INTERNAL: Creates a map that is expected to contain a large number of objects.<T> Set<T>
makeLargeSet()
INTERNAL: Creates a set that is expected to contain a large number of objects.<T> List<T>
makeSmallList()
INTERNAL: Creates a list that is expected to contain a small number of objects.<V,K>
Map<V,K>makeSmallMap()
INTERNAL: Creates a map that is expected to contain a small number of objects.<T> Set<T>
makeSmallSet()
INTERNAL: Creates a set that is expected to contain a small number of objects.
-
-
-
Method Detail
-
makeSmallSet
public <T> Set<T> makeSmallSet()
Description copied from interface:CollectionFactoryIF
INTERNAL: Creates a set that is expected to contain a small number of objects.- Specified by:
makeSmallSet
in interfaceCollectionFactoryIF
-
makeLargeSet
public <T> Set<T> makeLargeSet()
Description copied from interface:CollectionFactoryIF
INTERNAL: Creates a set that is expected to contain a large number of objects.- Specified by:
makeLargeSet
in interfaceCollectionFactoryIF
-
makeSmallMap
public <V,K> Map<V,K> makeSmallMap()
Description copied from interface:CollectionFactoryIF
INTERNAL: Creates a map that is expected to contain a small number of objects.- Specified by:
makeSmallMap
in interfaceCollectionFactoryIF
-
makeLargeMap
public <V,K> Map<V,K> makeLargeMap()
Description copied from interface:CollectionFactoryIF
INTERNAL: Creates a map that is expected to contain a large number of objects.- Specified by:
makeLargeMap
in interfaceCollectionFactoryIF
-
makeSmallList
public <T> List<T> makeSmallList()
Description copied from interface:CollectionFactoryIF
INTERNAL: Creates a list that is expected to contain a small number of objects.- Specified by:
makeSmallList
in interfaceCollectionFactoryIF
-
makeLargeList
public <T> List<T> makeLargeList()
Description copied from interface:CollectionFactoryIF
INTERNAL: Creates a list that is expected to contain a large number of objects.- Specified by:
makeLargeList
in interfaceCollectionFactoryIF
-
-