E1 - the first iterator element typeE2 - the second iterator element typepublic class ZipLongestIterator<E1,E2> extends ReadOnlyIterator<Pair<Optional<E1>,Optional<E2>>>
| Constructor and Description |
|---|
ZipLongestIterator(Iterator<E1> former,
Iterator<E2> latter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Pair<Optional<E1>,Optional<E2>> |
next()
iterating over the longest iterator gives a Pair of Optional.nothing
indefinitely "no matter how many times you try, you can't shoot the dog"
|
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingCopyright © 2017. All rights reserved.