| Constructor and Description |
|---|
SetExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
isEmpty(Set<T> set)
Deprecated.
use instead the same name method in the class CollectionExtensions. Note: will be
removed in the next minor release
|
static <T> boolean |
isNotEmpty(Set<T> set)
Deprecated.
use instead the same name method in the class CollectionExtensions. Note: will be
removed in the next minor release
|
static <T> Set<T> |
newHashSet(Collection<T> collection,
T... elements)
|
static <T> Set<T> |
newHashSet(T... elements)
|
static <T> SortedSet<T> |
newTreeSet(Collection<T> collection,
Comparator<T> comparator,
T... elements)
|
static <T> SortedSet<T> |
newTreeSet(Collection<T> collection,
T... elements)
|
static <T> SortedSet<T> |
newTreeSet(T... elements)
|
static <T> Set<T> |
toSet(Collection<T> collection)
Converts the given
Collection to a Set. |
static <T> SortedSet<T> |
toSortedSet(Collection<T> collection)
Converts the given
Collection to a SortedSet. |
@SafeVarargs public static final <T> Set<T> newHashSet(T... elements)
@SafeVarargs public static final <T> Set<T> newHashSet(Collection<T> collection, T... elements)
@SafeVarargs public static final <T> SortedSet<T> newTreeSet(T... elements)
@SafeVarargs public static final <T> SortedSet<T> newTreeSet(Collection<T> collection, T... elements)
@SafeVarargs public static final <T> SortedSet<T> newTreeSet(Collection<T> collection, Comparator<T> comparator, T... elements)
@Deprecated public static <T> boolean isEmpty(Set<T> set)
T - the generic type of the elementsset - The Set to check@Deprecated public static <T> boolean isNotEmpty(Set<T> set)
T - the generic type of the elementsset - The Set to checkpublic static <T> Set<T> toSet(Collection<T> collection)
Collection to a Set.T - the generic type of the elementscollection - the collectionSetpublic static <T> SortedSet<T> toSortedSet(Collection<T> collection)
Collection to a SortedSet.T - the generic type of the elementscollection - the collectionSortedSetCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.