public class EnumerationUtils extends Object
Enumeration instances.| Constructor and Description |
|---|
EnumerationUtils()
EnumerationUtils is not normally instantiated.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> List<E> |
toList(Enumeration<E> enumeration)
Creates a list based on an enumeration.
|
static List<String> |
toList(StringTokenizer stringTokenizer)
Override toList(Enumeration) for StringTokenizer as it implements Enumeration
|
public EnumerationUtils()
public static <E> List<E> toList(Enumeration<E> enumeration)
As the enumeration is traversed, an ArrayList of its values is created. The new list is returned.
E - the element typeenumeration - the enumeration to traverse, which should not be null.NullPointerException - if the enumeration parameter is null.public static List<String> toList(StringTokenizer stringTokenizer)
stringTokenizer - the tokenizer to convert to a List(String)Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.