|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpaul.DataStructs.SetFactory<E>
jpaul.DataStructs.SetFacts.TreeSetFactory<E>
SetFacts.tree(Comparator) instead.
public static class SetFacts.TreeSetFactory<E>
TreeSetFactory is a set factory that generates
TreeSets. TreeSets are great for
applications that use many small sets.
| Constructor Summary | |
|---|---|
SetFacts.TreeSetFactory(java.util.Comparator<E> comp)
Deprecated. Creates a TreeSetFactory. |
|
| Method Summary | |
|---|---|
java.util.Set<E> |
create()
Deprecated. Create a new object of class T. |
java.util.Set<E> |
newColl(java.util.Collection<E> c)
Deprecated. 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.TreeSetFactory(java.util.Comparator<E> comp)
TreeSetFactory.
comp - Comparator used internally by the generated
TreeSets.| Method Detail |
|---|
public java.util.Set<E> create()
FactoryT. Corresponds to a
default constructor.
public java.util.Set<E> newColl(java.util.Collection<E> c)
SetFactorycreate() to create
an empty set, and next adds all elements from
coll to the newly-created set.
newColl in interface CollectionFactory<E>newColl in class SetFactory<E>Factory.create(Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||