|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpaul.DataStructs.SetFactory<E> jpaul.DataStructs.SetFacts.HashSetFactory<E>
SetFacts.hash()
instead.
public static class SetFacts.HashSetFactory<E>
HashSetFactory
is a set factory that generates
LinkedHashSet
s. LinkedHashSet
s are
great for applications that use a few large sets. They also
offer predictable iteration order.
Constructor Summary | |
---|---|
SetFacts.HashSetFactory()
Deprecated. |
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.HashSetFactory()
Method Detail |
---|
public java.util.Set<E> create()
Factory
T
. Corresponds to a
default constructor.
public java.util.Set<E> newColl(java.util.Collection<E> c)
SetFactory
create()
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 |