Class PersistentMultiMapFactory<K,V>

java.lang.Object
net.cscott.jutil.PersistentMultiMapFactory<K,V>
All Implemented Interfaces:
MapFactory<K,V>, MultiMapFactory<K,V>

public class PersistentMultiMapFactory<K,V> extends Object implements MultiMapFactory<K,V>
A PersistentMultiMapFactory uses hash-consing to ensure that the MultiMaps created by it maximally reuse space. Equality tests between MultiMaps created by this factory are constant-time. Cloning a MultiMap created by this factory is also constant-time. The generated MultiMaps are Maps of (Persistent)Sets, not Maps of generalized Collections (ie, no duplicate <key,value> mappings are allowed). The implementation is based on persistent randomized treaps.
Since:
1.3
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>