@Mutable public class IteratingIterator<ELEMENT> extends InfiniteIterator<ELEMENT>
| Modifier and Type | Field and Description |
|---|---|
protected @Nonnull FailableUnaryOperator<ELEMENT,?> |
unaryOperator |
| Modifier | Constructor and Description |
|---|---|
protected |
IteratingIterator(ELEMENT firstElement,
@Nonnull FailableUnaryOperator<ELEMENT,?> unaryOperator) |
| Modifier and Type | Method and Description |
|---|---|
ELEMENT |
next() |
static <ELEMENT> @Nonnull IteratingIterator<ELEMENT> |
with(ELEMENT firstElement,
@Nonnull FailableUnaryOperator<ELEMENT,?> unaryOperator)
Returns a new iterating iterator that iterates over the sequence produced by the given operator from the given first element.
|
hasNextremoveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining@Nonnull protected final @Nonnull FailableUnaryOperator<ELEMENT,?> unaryOperator
protected IteratingIterator(@Captured
ELEMENT firstElement,
@Nonnull
@Nonnull FailableUnaryOperator<ELEMENT,?> unaryOperator)
@Pure @Capturable @Nonnull public static <ELEMENT> @Nonnull IteratingIterator<ELEMENT> with(@Captured ELEMENT firstElement, @Nonnull @Nonnull FailableUnaryOperator<ELEMENT,?> unaryOperator)
Copyright © 2017. All rights reserved.