public class SetUtil extends Object
Constructor and Description |
---|
SetUtil() |
Modifier and Type | Method and Description |
---|---|
static <X> Set<X> |
difference(Set<? extends X> a,
Set<? extends X> b) |
static <X> List<X> |
differenceAtakeBtoList(Set<? extends X> a,
Set<? extends X> b) |
static <X> boolean |
equals(Set<? extends X> b,
Collection<? extends X> a) |
static <X> X |
getSingle(Set<? extends X> a) |
static <X> boolean |
hasIntersection(Set<? extends X> b,
Collection<? extends X> a) |
static <X> Set<X> |
intersectionOrNull(Set<? extends X> a,
Set<? extends X> b) |
static <X> Set<X> |
originalIntersectionOrNull(Set<X> a,
Set<? extends X> b) |
public static <X> boolean equals(Set<? extends X> b, Collection<? extends X> a)
public static <X> boolean hasIntersection(Set<? extends X> b, Collection<? extends X> a)
public static <X> Set<X> originalIntersectionOrNull(Set<X> a, Set<? extends X> b)
public static <X> Set<X> intersectionOrNull(Set<? extends X> a, Set<? extends X> b)
public static <X> List<X> differenceAtakeBtoList(Set<? extends X> a, Set<? extends X> b)
public static <X> X getSingle(Set<? extends X> a)
Copyright © 2011-2021. All Rights Reserved.