net.cscott.jutil
public class PersistentMapFactory<K,V> extends MapFactory<K,V>
PersistentMapFactory
uses hash-consing to ensure that
the PersistentMap
s created by it maximally reuse space.
Equality tests between Map
s created by this factory are
also fast.
Version: $Id: PersistentMapFactory.java,v 1.3 2004/01/14 18:44:01 cananian Exp $
Constructor Summary | |
---|---|
PersistentMapFactory(Comparator<K> comparator) Creates a PersistentMapFactory . |
Method Summary | |
---|---|
Map<K,V> | makeMap(Map<? extends K,? extends V> mm) Generates a new unsynchronized mutable Map which
is based on persistent randomized treaps. |
PersistentMapFactory
.Map
which
is based on persistent randomized treaps. All Map
s
created by this factory maximally reuse space, and have very
fast comparison operations.