public final class Enumerations extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Enumeration<T> |
concat(Collection<? extends Enumeration<? extends T>> c) |
static <T> Enumeration<T> |
concat(Enumeration<? extends T>... a) |
static <T> Enumeration<T> |
empty() |
static <T> Enumeration<T> |
from(Iterator<? extends T> iter) |
static <T> Enumeration<T> |
just(T single) |
static <T> Enumeration<T> |
of(Collection<? extends T> c) |
static <T> Enumeration<T> |
of(T... a) |
static <T,C extends Collection<T>> |
toCollection(Enumeration<? extends T> e,
Supplier<? extends C> supplier) |
static <T> ObjIterator<T> |
toIterator(Enumeration<? extends T> e) |
static <T> List<T> |
toList(Enumeration<? extends T> e) |
static <T> Set<T> |
toSet(Enumeration<? extends T> e) |
public static <T> Enumeration<T> empty()
public static <T> Enumeration<T> just(T single)
public static <T> Enumeration<T> of(T... a)
public static <T> Enumeration<T> of(Collection<? extends T> c)
public static <T> Enumeration<T> from(Iterator<? extends T> iter)
@SafeVarargs public static <T> Enumeration<T> concat(Enumeration<? extends T>... a)
T - a - public static <T> Enumeration<T> concat(Collection<? extends Enumeration<? extends T>> c)
T - c - public static <T> ObjIterator<T> toIterator(Enumeration<? extends T> e)
public static <T> List<T> toList(Enumeration<? extends T> e)
public static <T> Set<T> toSet(Enumeration<? extends T> e)
public static <T,C extends Collection<T>> C toCollection(Enumeration<? extends T> e, Supplier<? extends C> supplier)
Copyright © 2021. All rights reserved.