harpoon.Util.Collections
Class AggregateMapFactory
java.lang.Object
|
+--harpoon.Util.Collections.MapFactory
|
+--harpoon.Util.Collections.AggregateMapFactory
- All Implemented Interfaces:
- Serializable
- public class AggregateMapFactory
- extends MapFactory
- implements Serializable
AggregateMapFactory
uses a single HashMap
as backing store for the many smaller Map
s created
by this MapFactory
. This means that we use much
less space and rehash less frequently than if we were using
the standard Factories.hashMapFactory
.
The iterators of the submaps are fast, unlike those of
HashMap
.
- Version:
- $Id: AggregateMapFactory.java,v 1.2 2002/02/25 21:09:03 cananian Exp $
- Author:
- C. Scott Ananian <cananian@alumni.princeton.edu>
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AggregateMapFactory
public AggregateMapFactory()
- Creates an
AggregateMapFactory
.
makeMap
public Map makeMap(Map mm)
- Generates a new mutable
Map
which is a
subset of the backing set of this
AggregateMapFactory
.
- Specified by:
makeMap
in class MapFactory