public class SynchronizedCollectionFactory extends Object implements CollectionFactoryIF, Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
initsize |
Constructor and Description |
---|
SynchronizedCollectionFactory() |
SynchronizedCollectionFactory(int initsize) |
Modifier and Type | Method and 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.
|
public SynchronizedCollectionFactory()
public SynchronizedCollectionFactory(int initsize)
public <T> Set<T> makeSmallSet()
CollectionFactoryIF
makeSmallSet
in interface CollectionFactoryIF
public <T> Set<T> makeLargeSet()
CollectionFactoryIF
makeLargeSet
in interface CollectionFactoryIF
public <K,V> Map<K,V> makeSmallMap()
CollectionFactoryIF
makeSmallMap
in interface CollectionFactoryIF
public <K,V> Map<K,V> makeLargeMap()
CollectionFactoryIF
makeLargeMap
in interface CollectionFactoryIF
public <T> List<T> makeSmallList()
CollectionFactoryIF
makeSmallList
in interface CollectionFactoryIF
public <T> List<T> makeLargeList()
CollectionFactoryIF
makeLargeList
in interface CollectionFactoryIF