net.cscott.jutil
public class AggregateMapFactory<K,V> extends MapFactory<K,V> 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.4 2004/01/13 21:57:14 cananian Exp $
Constructor Summary | |
---|---|
AggregateMapFactory() Creates an AggregateMapFactory . |
Method Summary | |
---|---|
Map<K,V> | makeMap(Map<? extends K,? extends V> mm) Generates a new mutable Map which is a
subset of the backing set of this
AggregateMapFactory . |
AggregateMapFactory
.Map
which is a
subset of the backing set of this
AggregateMapFactory
.