Package org.fest.util
Class Sets
- java.lang.Object
-
- org.fest.util.Sets
-
public final class Sets extends java.lang.Object
Utility methods related toSet
s.- Author:
- alruiz
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.util.LinkedHashSet<T>
newLinkedHashSet(T... elements)
Creates a mutableLinkedHashSet
containing the given elements.
-
-
-
Method Detail
-
newLinkedHashSet
public static <T> java.util.LinkedHashSet<T> newLinkedHashSet(T... elements)
Creates a mutableLinkedHashSet
containing the given elements.- Type Parameters:
T
- the generic type of theLinkedHashSet
to create.- Parameters:
elements
- the elements to store in theLinkedHashSet
.- Returns:
- the created
LinkedHashSet
, ofnull
if the given array of elements isnull
. - Since:
- 1.1.5
-
-