| 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(T... elements)
|
static <T> Set<T> |
toSet(List<T> list)
|
@SafeVarargs public static final <T> Set<T> newHashSet(T... elements)
public static <T> boolean isEmpty(Set<T> set)
T - the generic typeset - The Set to check.public static <T> boolean isNotEmpty(Set<T> set)
T - the generic typeset - The Set to check.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.