public abstract class AbstractLongIterator extends Object implements ResettableLongIterator, PeekingLongIterator, CloseableLongIterator
LongIterator allowing subclasses to
concentrate of computing next elements.| Modifier and Type | Field and Description |
|---|---|
protected long |
mNext |
NO_NEXT_ELEMENT| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLongIterator() |
protected |
AbstractLongIterator(long theFirst) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract long |
computeNext()
Computes the next long to be returned by the iterator.
|
protected long |
endOfData() |
boolean |
hasNext() |
long |
next() |
long |
peek() |
protected abstract void |
performReset()
Resets the state so iteration can start over.
|
void |
reset() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, ofprotected AbstractLongIterator()
protected AbstractLongIterator(long theFirst)
public final void reset()
reset in interface ResettableLongIteratorpublic boolean hasNext()
hasNext in interface LongIteratorpublic final long next()
next in interface LongIteratorpublic final long peek()
peek in interface PeekingLongIteratorprotected final long endOfData()
protected abstract long computeNext()
protected abstract void performReset()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.