| Constructor and Description |
|---|
SetExtensions() |
| Modifier and Type | Method and Description |
|---|---|
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> 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–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.