public class Sets extends Object
| 构造器和说明 |
|---|
Sets() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E> Set<E> |
asSet(Collection<E> collection) |
static <E> Set<E> |
asSet(E... iterable) |
static <E> Set<E> |
asSet(Enumeration<E> enumeration) |
static <E> Set<E> |
asSet(Iterable<E> iterable) |
static <E> Set<E> |
asSet(Iterator<E> iterator) |
static <E> Set<E> |
asSet(Supplier<Set<E>> supplier,
E... iterable) |
static <E> Set<E> |
asSet(Supplier<Set<E>> supplier,
Enumeration<E> enumeration) |
static <E> Set<E> |
asSet(Supplier<Set<E>> supplier,
Iterable<E> iterable) |
static <E> Set<E> |
asSet(Supplier<Set<E>> supplier,
Iterator<E> iterator) |
static <S,T> Set<T> |
convert(Set<S> set,
Function<S,T> converter,
Function<T,S> reconvert) |
static <E> CopyOnWriteArraySet<E> |
newCopyOnWriteArraySet() |
static <E> Set<E> |
newHashSet() |
static <E> Set<E> |
newLinkedHashSet() |
static <E extends Comparable<? super E>> |
newTreeSet() |
static <E> Set<E> |
newTreeSet(Comparator<? super E> comparator) |
public static <E> Set<E> newHashSet()
public static <E> Set<E> newLinkedHashSet()
public static <E extends Comparable<? super E>> Set<E> newTreeSet()
public static <E> Set<E> newTreeSet(Comparator<? super E> comparator)
public static <E> CopyOnWriteArraySet<E> newCopyOnWriteArraySet()
public static <E> Set<E> asSet(Collection<E> collection)
public static <E> Set<E> asSet(Enumeration<E> enumeration)
@SafeVarargs public static <E> Set<E> asSet(E... iterable)
public static <E> Set<E> asSet(Supplier<Set<E>> supplier, Enumeration<E> enumeration)
@SafeVarargs public static <E> Set<E> asSet(Supplier<Set<E>> supplier, E... iterable)
Copyright © 2024 fossc. All rights reserved.