Package net.ontopia.utils
Interface CollectionFactoryIF
-
- All Known Implementing Classes:
CollectionFactory
,SynchronizedCollectionFactory
public interface CollectionFactoryIF
INTERNAL: Factory that creates collection objects. Implementations should be made if it is necessary to work with customized collection classes. Classes that use a collection factory instead of creating collection objects itself, will be able to work with multiple collection implementations.
-
-
Method Summary
All Methods Instance Methods Abstract 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
<T> Set<T> makeSmallSet()
INTERNAL: Creates a set that is expected to contain a small number of objects.
-
makeLargeSet
<T> Set<T> makeLargeSet()
INTERNAL: Creates a set that is expected to contain a large number of objects.
-
makeSmallMap
<V,K> Map<V,K> makeSmallMap()
INTERNAL: Creates a map that is expected to contain a small number of objects.
-
makeLargeMap
<V,K> Map<V,K> makeLargeMap()
INTERNAL: Creates a map that is expected to contain a large number of objects.
-
makeSmallList
<T> List<T> makeSmallList()
INTERNAL: Creates a list that is expected to contain a small number of objects.
-
makeLargeList
<T> List<T> makeLargeList()
INTERNAL: Creates a list that is expected to contain a large number of objects.
-
-