public class InclusiveTerminalLongIterator extends DelegatingUnaryLongIterator
iteratorEMPTY| Constructor and Description |
|---|
InclusiveTerminalLongIterator(LongIterator iterator,
long terminal) |
InclusiveTerminalLongIterator(LongIterator iterator,
java.util.function.LongPredicate terminal) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
long |
nextLong() |
removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, count, from, from, from, from, from, from, from, from, from, isEmpty, of, reduce, removeAll, skip, skippublic InclusiveTerminalLongIterator(LongIterator iterator, long terminal)
public InclusiveTerminalLongIterator(LongIterator iterator, java.util.function.LongPredicate terminal)
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Long>hasNext in class DelegatingTransformingIterator<java.lang.Long,LongIterator,java.lang.Long>public long nextLong()