Class AbstractSkippingLongIterator
- java.lang.Object
-
- com.complexible.common.primitives.AbstractLongIterator
-
- com.complexible.common.primitives.AbstractSkippingLongIterator
-
- All Implemented Interfaces:
PeekingLongIterator
,SkippingLongIterator
,CloseableLongIterator
,LongIterator
,ResettableLongIterator
,java.lang.AutoCloseable
public abstract class AbstractSkippingLongIterator extends AbstractLongIterator implements SkippingLongIterator
- Since:
- 5.1
- Version:
- 5.1
- Author:
- Pavel Klinov
-
-
Field Summary
-
Fields inherited from class com.complexible.common.primitives.AbstractLongIterator
mNext
-
Fields inherited from interface com.complexible.common.primitives.LongIterator
NO_NEXT_ELEMENT
-
Fields inherited from interface com.complexible.common.collect.SkippingLongIterator
NOT_FOUND
-
-
Constructor Summary
Constructors Constructor Description AbstractSkippingLongIterator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract long
computeSkipTo(long theValue)
long
skipTo(long theValue)
Returns the minimum value from this iterator that is greater than or equal to the given value orSkippingLongIterator.NOT_FOUND
if there is no such value.-
Methods inherited from class com.complexible.common.primitives.AbstractLongIterator
computeNext, endOfData, hasNext, next, peek, performReset, reset
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.complexible.common.primitives.LongIterator
hasNext, next
-
Methods inherited from interface com.complexible.common.collect.PeekingLongIterator
peek
-
Methods inherited from interface com.complexible.common.collect.SkippingLongIterator
close, reset
-
-
-
-
Method Detail
-
skipTo
public final long skipTo(long theValue)
Description copied from interface:SkippingLongIterator
Returns the minimum value from this iterator that is greater than or equal to the given value orSkippingLongIterator.NOT_FOUND
if there is no such value.- Specified by:
skipTo
in interfaceSkippingLongIterator
-
computeSkipTo
public abstract long computeSkipTo(long theValue)
-
-