Package net.ontopia.utils
Class SynchronizedCollectionFactory
- java.lang.Object
-
- net.ontopia.utils.SynchronizedCollectionFactory
-
- All Implemented Interfaces:
Serializable
,CollectionFactoryIF
public class SynchronizedCollectionFactory extends Object implements CollectionFactoryIF, Serializable
INTERNAL: A collection factory that returns 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 SynchronizedCollectionFactory()
SynchronizedCollectionFactory(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.<K,V>
Map<K,V>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.<K,V>
Map<K,V>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 <K,V> Map<K,V> 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 <K,V> Map<K,V> 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
-
-