public final class EnumUtils extends Object
Enumerations.| Modifier and Type | Method and Description |
|---|---|
static String |
concatenated(String sep,
Enumeration<?> e)
Concatenate an Enumeration, specifying the separator.
|
static boolean |
contains(Enumeration<?> e,
Object o)
Whether the Enumeration contain an Object.
|
static <T> Vector<T> |
initial(Enumeration<T> e,
int n)
Create a Vector of the first n Elements of an Enumeration.
|
static <T> Enumeration<T> |
join(Enumeration<T> a,
Enumeration<T> b)
Join two Enumerations into a single one.
|
static <T> List<T> |
list(Enumeration<T> enumeration) |
static <T> int |
skip(Enumeration<T> e,
int n)
Skip a specified number of Elements in an Enumeration.
|
static <T> Vector<T> |
vectorOf(Enumeration<T> e)
Create a Vector from an Enumeration, supplying an
initial size of 20.
|
static <T> Vector<T> |
vectorOf(Enumeration<T> e,
int roughSize)
Create a Vector from an Enumeration.
|
public static <T> int skip(Enumeration<T> e, int n)
e - the Enumeration to skip Elements ofn - the number of Elements to skippublic static <T> Vector<T> initial(Enumeration<T> e, int n)
e - the input Enumerationn - the number of Elements to includepublic static <T> Enumeration<T> join(Enumeration<T> a, Enumeration<T> b)
a - head Enumerationb - tail Enumerationpublic static <T> Vector<T> vectorOf(Enumeration<T> e, int roughSize)
e - the source EnumerationroughSize - starting size of the Vectorpublic static <T> Vector<T> vectorOf(Enumeration<T> e)
e - the source Enumerationpublic static String concatenated(String sep, Enumeration<?> e)
sep - Separator stringe - Enumeration to be concatenatedpublic static boolean contains(Enumeration<?> e, Object o)
e - an Enumeration to look ino - the Object to look forpublic static <T> List<T> list(Enumeration<T> enumeration)
Copyright © 2000–2021 PanEris. All rights reserved.