E - type parameterpublic final class EmptyEnumeration<E> extends Object implements Enumeration<E>
The Collections class from Java 7 provides an emptyEnumeration() method
which will make this class unnecessary once we switch to Java 7.
TODO Remove this class when we require Java 7 for building and from our class libraries.
| Modifier and Type | Field and Description |
|---|---|
private static EmptyEnumeration<?> |
INSTANCE |
| Modifier | Constructor and Description |
|---|---|
private |
EmptyEnumeration()
Non-instantiable.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Enumeration<T> |
emptyEnumeration() |
boolean |
hasMoreElements() |
E |
nextElement() |
private static final EmptyEnumeration<?> INSTANCE
private EmptyEnumeration()
emptyEnumeration() to
create instances.public boolean hasMoreElements()
hasMoreElements in interface Enumeration<E>public E nextElement()
nextElement in interface Enumeration<E>public static <T> Enumeration<T> emptyEnumeration()