| Constructor and Description |
|---|
SetExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T[] |
toArray(@NonNull Set<T> set)
Converts the given
Set to an array |
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. |
public static <T> T[] toArray(@NonNull
@NonNull Set<T> set)
Set to an arrayT - the generic typeset - the setSetpublic static <T> Set<T> toSet(Collection<T> collection)
Collection to a SetT - 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–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.