@Deprecated public final class Sets extends Object
Set instances| Modifier and Type | Method and Description |
|---|---|
static <T> Set<T> |
of(Iterable<T> elements)
Deprecated.
|
static <T> Set<T> |
of(T... elements)
Deprecated.
Constructs an unmodifiable
Set of a variable number of elements. |
static <T> Set<T> |
of(T e1,
T e2)
Deprecated.
Constructs an unmodifiable
Set of two elements. |
static <T> Set<T> |
of(T e1,
T e2,
T e3)
Deprecated.
Constructs an unmodifiable
Set of three elements. |
static <T> Set<T> |
of(T e1,
T e2,
T e3,
T e4)
Deprecated.
Constructs an unmodifiable
Set of four elements. |
static <T> Set<T> |
of(T e1,
T e2,
T e3,
T e4,
T e5)
Deprecated.
Constructs an unmodifiable
Set of five elements. |
public static <T> Set<T> of(T e1, T e2)
Set of two elements.T - the type of the set elementse1 - the first elemente2 - the second elementSet instance containing the given elementspublic static <T> Set<T> of(T e1, T e2, T e3)
Set of three elements.T - the type of the set elementse1 - the first elemente2 - the second elemente3 - the third elementSet instance containing the given elementspublic static <T> Set<T> of(T e1, T e2, T e3, T e4)
Set of four elements.T - the type of the set elementse1 - the first elemente2 - the second elemente3 - the third elemente4 - the fourth elementSet instance containing the given elementspublic static <T> Set<T> of(T e1, T e2, T e3, T e4, T e5)
Set of five elements.T - the type of the set elementse1 - the first elemente2 - the second elemente3 - the third elemente4 - the fourth elemente5 - the fifth elementSet instance containing the given elements@SafeVarargs public static <T> Set<T> of(T... elements)
Set of a variable number of elements.T - the type of the set elementselements - the elements to create the set ofSet instance containing the given elementsCopyright © 2011. All rights reserved.