Class AbstractSkippingLongIterator
java.lang.Object
com.complexible.common.primitives.AbstractLongIterator
com.complexible.common.primitives.AbstractSkippingLongIterator
- All Implemented Interfaces:
PeekingLongIterator,SkippingLongIterator,CloseableLongIterator,LongIterator,ResettableLongIterator,AutoCloseable
public abstract class AbstractSkippingLongIterator
extends AbstractLongIterator
implements SkippingLongIterator
- Since:
- 5.1
- Author:
- Pavel Klinov
-
Field Summary
Fields inherited from class com.complexible.common.primitives.AbstractLongIterator
mNextFields inherited from interface com.complexible.common.primitives.LongIterator
NO_NEXT_ELEMENTFields inherited from interface com.complexible.common.collect.SkippingLongIterator
NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract longcomputeSkipTo(long theValue) final booleanskipTo(long theValue) Moves the position to the minimal value that is greater than or equal to the target.Methods inherited from class com.complexible.common.primitives.AbstractLongIterator
computeNext, endOfData, hasNext, next, peek, performReset, resetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.complexible.common.primitives.LongIterator
hasNext, nextMethods inherited from interface com.complexible.common.collect.PeekingLongIterator
peekMethods inherited from interface com.complexible.common.collect.SkippingLongIterator
close, reset
-
Constructor Details
-
AbstractSkippingLongIterator
public AbstractSkippingLongIterator()
-
-
Method Details
-
skipTo
public final boolean skipTo(long theValue) Description copied from interface:SkippingLongIteratorMoves the position to the minimal value that is greater than or equal to the target. Returns true, if such value exists, false otherwise.- Specified by:
skipToin interfaceSkippingLongIterator
-
computeSkipTo
public abstract long computeSkipTo(long theValue)
-