edu.stanford.nlp.util
Class MapFactory

java.lang.Object
  extended by edu.stanford.nlp.util.MapFactory
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MapFactory.HashMapFactory, MapFactory.IdentityHashMapFactory, MapFactory.TreeMapFactory, MapFactory.WeakHashMapFactory

public abstract class MapFactory
extends java.lang.Object
implements java.io.Serializable

Factory for vending Maps.

See Also:
Serialized Form

Nested Class Summary
static class MapFactory.HashMapFactory
           
static class MapFactory.IdentityHashMapFactory
           
static class MapFactory.TreeMapFactory
           
static class MapFactory.WeakHashMapFactory
           
 
Field Summary
static MapFactory HASH_MAP_FACTORY
           
static MapFactory IDENTITY_HASH_MAP_FACTORY
           
static MapFactory TREE_MAP_FACTORY
           
static MapFactory WEAK_HASH_MAP_FACTORY
           
 
Constructor Summary
MapFactory()
           
 
Method Summary
abstract  java.util.Map newMap()
           
abstract
<K1,V1> java.util.Map<K1,V1>
setMap(java.util.Map<K1,V1> map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HASH_MAP_FACTORY

public static final MapFactory HASH_MAP_FACTORY

IDENTITY_HASH_MAP_FACTORY

public static final MapFactory IDENTITY_HASH_MAP_FACTORY

WEAK_HASH_MAP_FACTORY

public static final MapFactory WEAK_HASH_MAP_FACTORY

TREE_MAP_FACTORY

public static final MapFactory TREE_MAP_FACTORY
Constructor Detail

MapFactory

public MapFactory()
Method Detail

newMap

public abstract java.util.Map newMap()

setMap

public abstract <K1,V1> java.util.Map<K1,V1> setMap(java.util.Map<K1,V1> map)