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:
-
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.<K,V> Map<K, V> 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.<K,V> Map<K, V> 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
-
SynchronizedCollectionFactory
public SynchronizedCollectionFactory() -
SynchronizedCollectionFactory
public SynchronizedCollectionFactory(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
-