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