public class Sets extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <E> java.util.HashSet<E> |
newHashSet(E... elements)
Creates a new HashSet filled with the given elements
|
@SafeVarargs public static <E> java.util.HashSet<E> newHashSet(E... elements)
E - type of elements contained in new setelements - the elements to fill the new set