Payload - The payload type.public final class EnumerationIterator<Payload> extends Object implements ProtectedIterator<Payload>
EnumerationIterator is an Iterator that can be wrapped
around a given Enumeration and yields all values yielded by the given
Enumeration.| Constructor and Description |
|---|
EnumerationIterator(Enumeration<Payload> enumeration)
Creates a new
EnumerationIterator from the given
Enumeration. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Payload |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic EnumerationIterator(Enumeration<Payload> enumeration) throws IllegalArgumentException
EnumerationIterator from the given
Enumeration.enumeration - The Enumeration, around which the new
EnumerationIterator will be wrapped, or
null.IllegalArgumentException - If the given Enumeration is null.Copyright © 2015–2016 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.