Package org.dmfs.jems2.optional
Class Next<E>
- java.lang.Object
-
- org.dmfs.jems2.optional.LazyDelegatingOptional<E>
-
- org.dmfs.jems2.optional.Next<E>
-
- All Implemented Interfaces:
Optional<E>
public final class Next<E> extends LazyDelegatingOptional<E>
The next value of anIterator.Note this is evaluated lazily, which means the value depends on the state of the given
Iterator. Once retrieved, the value remains stable though.
-
-
Method Summary
-
Methods inherited from class org.dmfs.jems2.optional.LazyDelegatingOptional
isPresent, value
-
-
-
-
Constructor Detail
-
Next
public Next(java.util.Iterator<E> iterator)
-
-