public class SetUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Set<T> |
difference(Collection<? extends T> s1,
Collection<? extends T> s2)
Return is s1 \ s2
|
static <T> Set<T> |
intersection(Collection<T> parentCollection,
Collection<T> removeFromCollection) |
static <T> boolean |
intersectionP(Set<? extends T> s1,
Set<? extends T> s2) |
static <T> Set<T> |
union(Set<? extends T> s1,
Set<? extends T> s2) |
public static <T> Set<T> intersection(Collection<T> parentCollection, Collection<T> removeFromCollection)
public static <T> Set<T> difference(Collection<? extends T> s1, Collection<? extends T> s2)
Copyright © 2016. All Rights Reserved.