Payload - The payload type.public final class EnumerationIterator<Payload> extends AbstractProtectedIterator<Payload>
EnumerationIterator is an AbstractProtectedIterator that
can be wrapped around a given Enumeration and yields all values
yielded by the given Enumeration.| Constructor and Description |
|---|
EnumerationIterator(Enumeration<? extends Payload> enumeration)
Creates a new
EnumerationIterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Payload |
next() |
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic EnumerationIterator(Enumeration<? extends Payload> enumeration) throws IllegalArgumentException
EnumerationIterator.enumeration - The Enumeration to iterate over.IllegalArgumentException - If the given Enumeration is null.public boolean hasNext()
public Payload next() throws NoSuchElementException
NoSuchElementExceptionCopyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.