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 intinitsize
-
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:CollectionFactoryIFINTERNAL: Creates a set that is expected to contain a small number of objects.- Specified by:
makeSmallSetin interfaceCollectionFactoryIF
-
makeLargeSet
public <T> Set<T> makeLargeSet()
Description copied from interface:CollectionFactoryIFINTERNAL: Creates a set that is expected to contain a large number of objects.- Specified by:
makeLargeSetin interfaceCollectionFactoryIF
-
makeSmallMap
public <K,V> Map<K,V> makeSmallMap()
Description copied from interface:CollectionFactoryIFINTERNAL: Creates a map that is expected to contain a small number of objects.- Specified by:
makeSmallMapin interfaceCollectionFactoryIF
-
makeLargeMap
public <K,V> Map<K,V> makeLargeMap()
Description copied from interface:CollectionFactoryIFINTERNAL: Creates a map that is expected to contain a large number of objects.- Specified by:
makeLargeMapin interfaceCollectionFactoryIF
-
makeSmallList
public <T> List<T> makeSmallList()
Description copied from interface:CollectionFactoryIFINTERNAL: Creates a list that is expected to contain a small number of objects.- Specified by:
makeSmallListin interfaceCollectionFactoryIF
-
makeLargeList
public <T> List<T> makeLargeList()
Description copied from interface:CollectionFactoryIFINTERNAL: Creates a list that is expected to contain a large number of objects.- Specified by:
makeLargeListin interfaceCollectionFactoryIF
-
-