|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwutil.collections.SetUtil
public abstract class SetUtil
SetUtil
Constructor Summary | |
---|---|
SetUtil()
|
Method Summary | |
---|---|
static java.util.Collection |
powerSet(java.util.Collection c)
The powerSet method returns a Collection whose elements are exactly the subsets of c, with no repetitions. |
static java.util.Collection |
powerSet(CollectionFactory f,
java.util.Collection c)
The powerSet method returns a Collection whose elements are exactly the subsets of c, with no repetitions. |
static java.util.Collection |
uniquify(java.util.Collection c)
Given an input Collection that may contain duplicates returns a Collection with the same elements but no duplicates. |
static java.util.Collection |
uniquify(CollectionFactory f,
java.util.Collection c)
Given an input Collection that may contain duplicates returns a Collection with the same elements but no duplicates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SetUtil()
Method Detail |
---|
public static java.util.Collection powerSet(java.util.Collection c)
c
- collection to take powerset of
ArrayList
,
powerSet(CollectionFactory,Collection)
public static java.util.Collection powerSet(CollectionFactory f, java.util.Collection c)
f
- collection factory to use to generate collectionc
- collection to take powerset of
public static java.util.Collection uniquify(java.util.Collection c)
c
- collection to uniquify
ArrayList
,
uniquify(CollectionFactory,Collection)
public static java.util.Collection uniquify(CollectionFactory f, java.util.Collection c)
f
- collection factory to use to generate collectionc
- collection to uniquify
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |