net.ontopia.utils
Class CollectionFactory

java.lang.Object
  extended by net.ontopia.utils.CollectionFactory
All Implemented Interfaces:
java.io.Serializable, CollectionFactoryIF

public class CollectionFactory
extends java.lang.Object
implements CollectionFactoryIF, java.io.Serializable

INTERNAL: A collection factory that returns non-synchronized standard java.util collection objects.

See Also:
Serialized Form

Field Summary
protected  int initsize
           
 
Constructor Summary
CollectionFactory()
           
CollectionFactory(int initsize)
           
 
Method Summary
<T> java.util.List<T>
makeLargeList()
          INTERNAL: Creates a list that is expected to contain a large number of objects.
<V,K> java.util.Map<V,K>
makeLargeMap()
          INTERNAL: Creates a map that is expected to contain a large number of objects.
<T> java.util.Set<T>
makeLargeSet()
          INTERNAL: Creates a set that is expected to contain a large number of objects.
<T> java.util.List<T>
makeSmallList()
          INTERNAL: Creates a list that is expected to contain a small number of objects.
<V,K> java.util.Map<V,K>
makeSmallMap()
          INTERNAL: Creates a map that is expected to contain a small number of objects.
<T> java.util.Set<T>
makeSmallSet()
          INTERNAL: Creates a set that is expected to contain a small number of objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initsize

protected int initsize
Constructor Detail

CollectionFactory

public CollectionFactory()

CollectionFactory

public CollectionFactory(int initsize)
Method Detail

makeSmallSet

public <T> java.util.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 interface CollectionFactoryIF

makeLargeSet

public <T> java.util.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 interface CollectionFactoryIF

makeSmallMap

public <V,K> java.util.Map<V,K> makeSmallMap()
Description copied from interface: CollectionFactoryIF
INTERNAL: Creates a map that is expected to contain a small number of objects.

Specified by:
makeSmallMap in interface CollectionFactoryIF

makeLargeMap

public <V,K> java.util.Map<V,K> makeLargeMap()
Description copied from interface: CollectionFactoryIF
INTERNAL: Creates a map that is expected to contain a large number of objects.

Specified by:
makeLargeMap in interface CollectionFactoryIF

makeSmallList

public <T> java.util.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 interface CollectionFactoryIF

makeLargeList

public <T> java.util.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 interface CollectionFactoryIF


Copyright © 2000-2012 Ontopia.