net.ontopia.utils
Class SynchronizedCollectionFactory

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

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

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

See Also:
Serialized Form

Field Summary
protected  int initsize
           
 
Constructor Summary
SynchronizedCollectionFactory()
           
SynchronizedCollectionFactory(int initsize)
           
 
Method Summary
<T> java.util.List<T>
makeLargeList()
          INTERNAL: Creates a list that is expected to contain a large number of objects.
<K,V> java.util.Map<K,V>
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.
<K,V> java.util.Map<K,V>
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

SynchronizedCollectionFactory

public SynchronizedCollectionFactory()

SynchronizedCollectionFactory

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