edu.stanford.nlp.util
Class CollectionFactory

java.lang.Object
  extended by edu.stanford.nlp.util.CollectionFactory
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CollectionFactory.ArrayListFactory, CollectionFactory.HashSetFactory

public abstract class CollectionFactory
extends Object
implements Serializable

Factory for vending Collections. It's a class instead of an interface because I guessed that it'd primarily be used for its inner classes.

Author:
Dan Klein (klein@cs.stanford.edu)
See Also:
Serialized Form

Nested Class Summary
static class CollectionFactory.ArrayListFactory
           
static class CollectionFactory.HashSetFactory
           
 
Field Summary
static CollectionFactory ARRAY_LIST_FACTORY
           
static CollectionFactory HASH_SET_FACTORY
           
 
Constructor Summary
CollectionFactory()
           
 
Method Summary
abstract  Collection newCollection()
           
abstract  Collection newEmptyCollection()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARRAY_LIST_FACTORY

public static final CollectionFactory ARRAY_LIST_FACTORY

HASH_SET_FACTORY

public static final CollectionFactory HASH_SET_FACTORY
Constructor Detail

CollectionFactory

public CollectionFactory()
Method Detail

newCollection

public abstract Collection newCollection()

newEmptyCollection

public abstract Collection newEmptyCollection()


Stanford NLP Group