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

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

Constructor Detail

CollectionFactory

public CollectionFactory()

CollectionFactory

public CollectionFactory(int initsize)
Method Detail

makeSmallSet

public java.util.Set 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 java.util.Set 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 java.util.Map 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 java.util.Map 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 java.util.List 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 java.util.List 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-2009 Ontopia.