|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.assertj.core.util.Sets
public final class Sets
Utility methods related to Sets.
| Method Summary | ||
|---|---|---|
static
|
newHashSet()
Creates a mutable HashSet. |
|
static
|
newHashSet(Iterable<? extends T> elements)
Creates a mutable HashSet containing the given elements. |
|
static
|
newLinkedHashSet()
Creates a mutable LinkedHashSet. |
|
static
|
newLinkedHashSet(T... elements)
Creates a mutable LinkedHashSet containing the given elements. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> HashSet<T> newHashSet()
HashSet.
T - the generic type of the HashSet to create.
HashSet.public static <T> HashSet<T> newHashSet(Iterable<? extends T> elements)
HashSet containing the given elements.
T - the generic type of the HashSet to create.elements - the elements to store in the HashSet.
HashSet, or null if the given array of elements is null.public static <T> LinkedHashSet<T> newLinkedHashSet()
LinkedHashSet.
T - the generic type of the LinkedHashSet to create.
LinkedHashSet.public static <T> LinkedHashSet<T> newLinkedHashSet(T... elements)
LinkedHashSet containing the given elements.
T - the generic type of the LinkedHashSet to create.elements - the elements to store in the LinkedHashSet.
LinkedHashSet, or null if the given array of elements is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||