public final class SetFactory extends Object
SetFactory provides factory methods for create new Set objects| Constructor and Description |
|---|
SetFactory() |
| Modifier and Type | Method and Description |
|---|---|
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)
|
@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)
Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.