java.lang.Objectucot.utils.Sets
public class Sets
Operations to use sets.
Constructor Summary | |
---|---|
Sets()
|
Method Summary | ||
---|---|---|
static
|
intersection(java.util.Set<T> set1,
java.util.Set<T> set2)
Item must be in both sets to be in the resulting set. |
|
static
|
missing(java.util.Set<T> set1,
java.util.Set<T> set2)
Returns set items that are missing in second set. |
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> intersection(java.util.Set<T> set1, java.util.Set<T> set2)
T
- The type of the items.set1
- The first set.set2
- The second set.
public static <T> java.util.Set<T> missing(java.util.Set<T> set1, java.util.Set<T> set2)
T
- set1
- set2
-