E - the iterator element typepublic class OptionalIterator<E> extends ReadOnlyIterator<Optional<E>>
| Constructor and Description |
|---|
OptionalIterator(Iterator<E> iterator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Optional<E> |
next()
calling next over the boundary of the contained iterator leads
Optional.empty 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.