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 Details