| Modifier and Type | Method and Description |
|---|---|
static <E> HashSet<E> |
newHashSet(E... elements) |
static <E> Set<E> |
union(Set<? extends E> set1,
Set<? extends E> set2)
This is a replacement for Guava's Sets#union(Set, Set).
|
@SafeVarargs public static <E> HashSet<E> newHashSet(E... elements)
elements - Copyright © 2017. All rights reserved.