public abstract class TransformingLongIterator<T> extends Object implements SkippingLongIterator
NOT_FOUNDNO_NEXT_ELEMENT| Constructor and Description |
|---|
TransformingLongIterator(SkippingIterator<T> theBaseIt,
boolean theSkipValues) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract long |
getLong(T theValue) |
protected abstract T |
getSkipTarget(long theValue) |
boolean |
hasNext() |
long |
next() |
long |
peek() |
void |
reset()
Resets the iterator to the beginning.
|
long |
skipTo(long theValue)
Returns the minimum value from this iterator that is greater than or equal to the given value or
SkippingLongIterator.NOT_FOUND if there is no such value. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic TransformingLongIterator(SkippingIterator<T> theBaseIt, boolean theSkipValues)
protected abstract long getLong(T theValue)
protected abstract T getSkipTarget(long theValue)
public boolean hasNext()
hasNext in interface LongIteratorpublic long next()
next in interface LongIteratorpublic long peek()
peek in interface PeekingLongIteratorpublic long skipTo(long theValue)
SkippingLongIteratorSkippingLongIterator.NOT_FOUND if there is no such value.skipTo in interface SkippingLongIteratorpublic void reset()
SkippingLongIteratorreset in interface SkippingLongIteratorpublic void close()
close in interface SkippingLongIteratorclose in interface CloseableLongIteratorclose in interface AutoCloseableCopyright © 2010-2016 Stardog Union. All Rights Reserved.