|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fesenmeyer.dbnormalizer.core.util.SetOperationsUtil
public final class SetOperationsUtil
Provides some commonly needed set operations.
Constructor Summary | |
---|---|
SetOperationsUtil()
|
Method Summary | ||
---|---|---|
static
|
containsSubset(Set<Set<T>> set1,
Set<T> set2)
Tests if argument set1 contains set2 as a subset. |
|
static
|
isProperSubset(Set<T> set1,
Set<T> set2)
Tests if argument set1 is a proper subset of argument set2. |
|
static
|
isSubset(Set<T> set1,
Set<T> set2)
Tests if argument set1 is a subset of argument set2. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SetOperationsUtil()
Method Detail |
---|
public static <T> boolean isSubset(Set<T> set1, Set<T> set2)
T
- an arbitrary typeset1
- a Setset2
- a Set
true
, if set1 is a subset of set2;
false
, otherwisepublic static <T> boolean isProperSubset(Set<T> set1, Set<T> set2)
T
- an arbitrary typeset1
- a Setset2
- a Set
true
, if set1 is a proper subset of set2;
false
, otherwisepublic static <T> boolean containsSubset(Set<Set<T>> set1, Set<T> set2)
T
- an arbitrary typeset1
- a Setset2
- a Set
true
, if set1 contains set2 as a subset;
false
, otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |