public class AggregateSetFactory<V> extends SetFactory<V> implements java.io.Serializable
AggregateSetFactory uses a single HashMap
as backing store for the many smaller Sets created
by this SetFactory. This means that we use much
less space and rehash less frequently than if we were using
the standard Factories.hashSetFactory().| Constructor and Description |
|---|
AggregateSetFactory()
Creates an
AggregateSetFactory. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<V> |
makeSet(java.util.Collection<? extends V> c)
Generates a new mutable
Set which is a
subset of the backing set of this
AggregateSetFactory. |
makeCollection, makeCollection, makeCollection, makeSet, makeSetpublic AggregateSetFactory()
AggregateSetFactory.public java.util.Set<V> makeSet(java.util.Collection<? extends V> c)
Set which is a
subset of the backing set of this
AggregateSetFactory.
WARNING:
The remove() method of the returned Set
is very slow.makeSet in class SetFactory<V>Copyright (c) 2006 C. Scott Ananian