|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpaul.DataStructs.SetFactory<T>
jpaul.DataStructs.SetFacts.COWSetFactory<E>
SetFacts.cow(SetFactory) instead.
@Deprecated public static class SetFacts.COWSetFactory<E>
COWSetFactory generates "copy-on-write" (COW) sets.
| Constructor Summary | |
|---|---|
SetFacts.COWSetFactory(SetFactory<E> underSetFact)
Deprecated. Creates a COWSetFactory. |
|
| Method Summary | |
|---|---|
java.util.Set<T> |
create()
Create a new object of class T. |
java.util.Set<T> |
newColl(java.util.Collection<T> coll)
Default implementation: uses create() to create
an empty set, and next adds all elements from
coll to the newly-created set. |
| Methods inherited from class jpaul.DataStructs.SetFactory |
|---|
create, newColl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetFacts.COWSetFactory(SetFactory<E> underSetFact)
COWSetFactory.
underSetFact - Set factory for generating the sets used
in the representation of the COW sets generated by this
COWSetFactory.| Method Detail |
|---|
public java.util.Set<T> create()
FactoryT. Corresponds to a
default constructor.
public java.util.Set<T> newColl(java.util.Collection<T> coll)
SetFactorycreate() to create
an empty set, and next adds all elements from
coll to the newly-created set.
newColl in interface CollectionFactory<T>newColl in class SetFactory<T>Factory.create(Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||