public class AggregateMapFactory<K,V> extends MapFactory<K,V> implements java.io.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.| Constructor and Description |
|---|
AggregateMapFactory()
Creates an
AggregateMapFactory. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<K,V> |
makeMap(java.util.Map<? extends K,? extends V> mm)
Generates a new mutable
Map which is a
subset of the backing set of this
AggregateMapFactory. |
makeMappublic AggregateMapFactory()
AggregateMapFactory.public java.util.Map<K,V> makeMap(java.util.Map<? extends K,? extends V> mm)
Map which is a
subset of the backing set of this
AggregateMapFactory.makeMap in class MapFactory<K,V>Copyright (c) 2006 C. Scott Ananian