|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.springsource.util.math.Sets
public class Sets
Defines common operations on Sets
.
Constructor Summary | |
---|---|
Sets()
|
Method Summary | ||
---|---|---|
static
|
asSet(T... items)
Creates a Set containing the supplied items. |
|
static
|
difference(java.util.Set<T> a,
java.util.Set<T> b)
Calculates the difference between a and b . |
|
static
|
intersection(java.util.Set<T> a,
java.util.Set<T> b)
Calculates the intersection between a and b . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sets()
Method Detail |
---|
public static <T> java.util.Set<T> difference(java.util.Set<T> a, java.util.Set<T> b)
a
and b
.
T
- the type of the Set
.a
- the lhs of the difference.b
- the rhs of the difference.
a
and b
.public static <T> java.util.Set<T> intersection(java.util.Set<T> a, java.util.Set<T> b)
a
and b
.
T
- the type of the Set
.a
- the lhs of the intersection.b
- the rhs of the intersection.
a
and b
.public static <T> java.util.Set<T> asSet(T... items)
Set
containing the supplied items.
T
- the type of the Set
entries.items
- the Set
contents.
Set
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |