edu.stanford.nlp.util
Class MapFactory
java.lang.Object
edu.stanford.nlp.util.MapFactory
- All Implemented Interfaces:
- Serializable
public abstract class MapFactory
- extends Object
- implements Serializable
Factory for vending Maps.
- Author:
- Dan Klein (klein@cs.stanford.edu), Kayur Patel (kdpatel@cs)
- See Also:
- Serialized Form
Method Summary |
abstract Map |
newMap()
|
abstract
|
setMap(Map<K1,V1> map)
A method to get a parameterized map out. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ARRAY_MAP_FACTORY
public static final MapFactory ARRAY_MAP_FACTORY
MapFactory
public MapFactory()
newMap
public abstract Map newMap()
setMap
public abstract <K1,V1> Map<K1,V1> setMap(Map<K1,V1> map)
- A method to get a parameterized map out.
- Parameters:
map
- a type-parameterized Map
argument
- Returns:
- a
Map
with type-parameterization identical to that of the argument.
Stanford NLP Group