T
- The element type of the enumeration and the iteratorpublic class EnumerationIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
Iterator
that iterates over the elements of an Enumeration
.Constructor and Description |
---|
EnumerationIterator(java.util.Enumeration<T> e) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
void |
remove()
Since
Enumeration s don't support element removal, this method always throws
an UnsupportedOperationException . |
private final java.util.Enumeration<T> e
public EnumerationIterator(java.util.Enumeration<T> e)
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public void remove()
Enumeration
s don't support element removal, this method always throws
an UnsupportedOperationException
.remove
in interface java.util.Iterator<T>
Iterator.remove()