T
- The element type of the enumeration and the iteratorIterator<T>
public class EnumerationIterator<T> extends Object implements Iterator<T>
Iterator
that iterates over the elements of an Enumeration
.Constructor | Description |
---|---|
EnumerationIterator(Enumeration<T> e) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasNext() |
|
T |
next() |
|
void |
remove() |
Since
Enumeration s don't support element removal, this method always throws
an UnsupportedOperationException . |
forEachRemaining
public EnumerationIterator(Enumeration<T> e)
public void remove()
Enumeration
s don't support element removal, this method always throws
an UnsupportedOperationException
.remove
in interface Iterator<T>
Iterator.remove()
Copyright © 2001–2019. All rights reserved.