| Constructor and Description |
|---|
SetExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
isEmpty(Set<T> set)
Checks if a Set is null or empty.
|
static <T> boolean |
isNotEmpty(Set<T> set)
Checks if the given Set is not null or empty.
|
static <T> Set<T> |
newHashSet(Collection<T> collection,
T... elements)
|
static <T> Set<T> |
newHashSet(T... elements)
|
static <T> Set<T> |
toSet(Collection<T> list)
|
@SafeVarargs public static final <T> Set<T> newHashSet(T... elements)
@SafeVarargs public static final <T> Set<T> newHashSet(Collection<T> collection, T... elements)
public static <T> boolean isEmpty(Set<T> set)
T - the generic type of the elementsset - The Set to check.public static <T> boolean isNotEmpty(Set<T> set)
T - the generic type of the elementsset - The Set to check.public static <T> Set<T> toSet(Collection<T> list)
T - the generic type of the elementslist - the listSetCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.