public class SetUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> java.util.Set<T> |
difference(java.util.Collection<? extends T> s1,
java.util.Collection<? extends T> s2)
Return is s1 \ s2
|
static <T> java.util.Set<T> |
intersection(java.util.Collection<T> parentCollection,
java.util.Collection<T> removeFromCollection) |
static <T> boolean |
intersectionP(java.util.Set<? extends T> s1,
java.util.Set<? extends T> s2) |
static <T> java.util.Set<T> |
union(java.util.Set<? extends T> s1,
java.util.Set<? extends T> s2) |
public static <T> java.util.Set<T> intersection(java.util.Collection<T> parentCollection, java.util.Collection<T> removeFromCollection)
public static <T> boolean intersectionP(java.util.Set<? extends T> s1, java.util.Set<? extends T> s2)
public static <T> java.util.Set<T> union(java.util.Set<? extends T> s1, java.util.Set<? extends T> s2)
public static <T> java.util.Set<T> difference(java.util.Collection<? extends T> s1, java.util.Collection<? extends T> s2)