public static final class CollectionUtils.EmptyEnumeration<E> extends Object implements Enumeration<E>
Constructor and Description |
---|
EmptyEnumeration()
Constructor for the EmptyEnumeration
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasMoreElements()
Tests if this enumeration contains more elements.
|
E |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more
element to provide.
|
public boolean hasMoreElements()
Enumeration
hasMoreElements
in interface Enumeration<E>
public E nextElement() throws NoSuchElementException
Enumeration
nextElement
in interface Enumeration<E>
NoSuchElementException
- always.