|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.util.Sets
public class Sets
Utilities for sets.
Method Summary | ||
---|---|---|
static
|
cross(java.util.Set<E> s1,
java.util.Set<F> s2)
Returns the set cross product of s1 and s2, as Pair s |
|
static
|
diff(java.util.Set<E> s1,
java.util.Set<E> s2)
Returns the difference of sets s1 and s2. |
|
static
|
intersection(java.util.Set<E> s1,
java.util.Set<E> s2)
Returns the intersection of sets s1 and s2. |
|
static void |
main(java.lang.String[] args)
|
|
static
|
powerSet(java.util.Set<E> s)
Returns the powerset (the set of all subsets) of set s. |
|
static
|
union(java.util.Set<E> s1,
java.util.Set<E> s2)
Returns the union of sets s1 and s2. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <E,F> java.util.Set<Pair<E,F>> cross(java.util.Set<E> s1, java.util.Set<F> s2)
Pair
s
public static <E> java.util.Set<E> diff(java.util.Set<E> s1, java.util.Set<E> s2)
public static <E> java.util.Set<E> union(java.util.Set<E> s1, java.util.Set<E> s2)
public static <E> java.util.Set<E> intersection(java.util.Set<E> s1, java.util.Set<E> s2)
public static <E> java.util.Set<java.util.Set<E>> powerSet(java.util.Set<E> s)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |