Enumeration instances.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type of object in the T> TEnumeration | Returns: the object at the specified indexthe enumeration to get a value from e, final int the index to get index)Returns the |
| public static < the element type E> List | Returns: a list containing all elements of the given enumerationthe enumeration to traverse, which should not be enumeration)null.Creates a list based on an enumeration. |
| public static List | Returns: a list containing all tokens of the given StringTokenizerOverride toList(Enumeration) for StringTokenizer as it implements Enumeration<Object> for the sake of backward compatibility. |
| EnumerationUtils | back to summary |
|---|---|
| private EnumerationUtils() EnumerationUtils is not normally instantiated. | |
| get | back to summary |
|---|---|
| public static <T> T get(final Enumeration<T> e, final int index) Returns the
The Enumeration is advanced to
| |
| toList | back to summary |
|---|---|
| public static <E> List Creates a list based on an enumeration. As the enumeration is traversed, an ArrayList of its values is created. The new list is returned.
| |
| toList | back to summary |
|---|---|
| public static List Override toList(Enumeration) for StringTokenizer as it implements Enumeration<Object> for the sake of backward compatibility.
| |