|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrita.support.SetOp
public final class SetOp
Utility operations that can be performed on Sets.
| Constructor Summary | |
|---|---|
SetOp()
|
|
| Method Summary | |
|---|---|
static java.util.Set |
cross(java.util.Set s1,
java.util.Set s2)
returns the set cr oss product of s1 and s2, as Pairs |
static java.util.Set |
diff(java.util.Set s1,
java.util.Set s2)
Set difference s1 - s2 |
static java.util.Set |
intersection(java.util.Set s1,
java.util.Set s2)
Set intersection |
static void |
main(java.lang.String[] args)
|
static java.util.Set |
powerSet(java.util.Set s)
returns the powerset of a set |
static java.lang.String[] |
toStringArray(java.util.Set set)
Converts a Set to a new String[] |
static java.util.Set |
union(java.util.Set s1,
java.util.Set s2)
Set union |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetOp()
| Method Detail |
|---|
public static java.lang.String[] toStringArray(java.util.Set set)
public static java.util.Set cross(java.util.Set s1,
java.util.Set s2)
Pairs
public static java.util.Set diff(java.util.Set s1,
java.util.Set s2)
public static java.util.Set union(java.util.Set s1,
java.util.Set s2)
public static java.util.Set intersection(java.util.Set s1,
java.util.Set s2)
public static java.util.Set powerSet(java.util.Set 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 | ||||||||