Payload - The payload type.public final class PairIterator<Payload> extends AbstractProtectedIterator<Payload>
PairIterator is an AbstractProtectedIterator that iterates over a given
Pair, where both components have a common super type.| Constructor and Description |
|---|
PairIterator(Pair<? extends Payload,? extends Payload> pair)
Creates a new
PairIterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Payload |
next() |
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic PairIterator(Pair<? extends Payload,? extends Payload> pair) throws IllegalArgumentException
PairIterator.pair - The Pair to iterate over.IllegalArgumentException - If the given Pair is null.public boolean hasNext()
public Payload next() throws NoSuchElementException
NoSuchElementException