public class SetUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Set<T> |
difference(Set<? extends T> s1,
Set<? extends T> s2)
Return is s1 \ s2
|
static <T> Set<T> |
intersection(Set<? extends T> setLeft,
Set<? extends T> setRight) |
static <T> boolean |
intersectionP(Set<? extends T> s1,
Set<? extends T> s2) |
static <T> boolean |
isDisjoint(Set<? extends T> s1,
Set<? extends T> s2)
Return true if s1 and s2 are disjoint
|
static <T> Set<T> |
union(Set<? extends T> s1,
Set<? extends T> s2) |
Licenced under the Apache License, Version 2.0