public final class Next<E> extends java.lang.Object implements Optional<E>
Iterator
Next(java.util.Iterator<E> iterator)
boolean
isPresent()
E
value()
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Next(java.util.Iterator<E> iterator)
public boolean isPresent()
Optional
isPresent
Optional<E>
true
false
public E value() throws java.util.NoSuchElementException
value
java.util.NoSuchElementException