Modifier and Type | Method and Description |
---|---|
static <T> LinkedHashSet<T> |
newLinkedHashSet(T... elements)
Creates a mutable
LinkedHashSet containing the given elements. |
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
, of null
if the given array of elements is null
.Copyright © 2013 AssertJ. All Rights Reserved.