Class Next<E>

  • All Implemented Interfaces:
    Optional<E>

    public final class Next<E>
    extends LazyDelegatingOptional<E>
    The next value of an Iterator.

    Note this is evaluated lazily, which means the value depends on the state of the given Iterator. Once retrieved, the value remains stable though.

    • Constructor Summary

      Constructors 
      Constructor Description
      Next​(java.util.Iterator<E> iterator)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Next

        public Next​(java.util.Iterator<E> iterator)