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