|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections4.EnumerationUtils
public class EnumerationUtils
Provides utility methods for Enumeration instances.
| Method Summary | ||
|---|---|---|
static
|
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<Object> for the sake of backward compatibility. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||