public abstract class AbstractSeekingIterator<K,V> extends Object implements SeekingIterator<K,V>
Constructor and Description |
---|
AbstractSeekingIterator() |
Modifier and Type | Method and Description |
---|---|
protected abstract Map.Entry<K,V> |
getNextElement() |
boolean |
hasNext() |
Map.Entry<K,V> |
next() |
Map.Entry<K,V> |
peek() |
void |
remove() |
void |
seek(K targetKey)
Repositions the iterator so the key of the next BlockElement returned greater than or equal to the specified targetKey.
|
protected abstract void |
seekInternal(K targetKey) |
void |
seekToFirst()
Repositions the iterator so the beginning of this block.
|
protected abstract void |
seekToFirstInternal() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public final void seekToFirst()
SeekingIterator
seekToFirst
in interface SeekingIterator<K,V>
public final void seek(K targetKey)
SeekingIterator
seek
in interface SeekingIterator<K,V>
public final void remove()
protected abstract void seekToFirstInternal()
protected abstract void seekInternal(K targetKey)
Copyright © 2011–2019. All rights reserved.