public class Sets extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Set<T> |
hashSet(Set<T> from,
T... elements) |
static <T> Set<T> |
hashSet(T... elements) |
static <T> Set<T> |
immutableHashSet(Set<T> from,
T... elements) |
static <T> Set<T> |
immutableHashSet(T... elements) |
@SafeVarargs public static <T> Set<T> hashSet(T... elements)
@SafeVarargs public static <T> Set<T> hashSet(Set<T> from, T... elements)
@SafeVarargs public static <T> Set<T> immutableHashSet(T... elements)
@SafeVarargs public static <T> Set<T> immutableHashSet(Set<T> from, T... elements)
Copyright © 2019 The Apache Software Foundation. All rights reserved.