net.cscott.jutil

Class AggregateMapFactory<K,V>

public class AggregateMapFactory<K,V> extends MapFactory<K,V> implements Serializable

AggregateMapFactory uses a single HashMap as backing store for the many smaller Maps 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 $

Author: C. Scott Ananian

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.

Constructor Detail

AggregateMapFactory

public AggregateMapFactory()
Creates an AggregateMapFactory.

Method Detail

makeMap

public 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.
Copyright © 2003 C. Scott Ananian