harpoon.Util.Collections
Class MapFactory

java.lang.Object
  |
  +--harpoon.Util.Collections.MapFactory
Direct Known Subclasses:
AggregateMapFactory, MultiMap.Factory

public abstract class MapFactory
extends Object

MapFactory is a Map generator. Subclasses should implement constructions of specific types of Maps.

Version:
$Id: MapFactory.java,v 1.2 2002/02/25 21:09:05 cananian Exp $
Author:
Felix S. Klock II <pnkfelix@mit.edu>

Constructor Summary
MapFactory()
          Creates a MapFactory.
 
Method Summary
 Map makeMap()
          Generates a new, mutable, empty Map.
abstract  Map makeMap(Map map)
          Generates a new Map, using the entries of map as a template for its initial mappings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapFactory

public MapFactory()
Creates a MapFactory.

Method Detail

makeMap

public final Map makeMap()
Generates a new, mutable, empty Map.


makeMap

public abstract Map makeMap(Map map)
Generates a new Map, using the entries of map as a template for its initial mappings.