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, waitforEachRemainingpublic final void seekToFirst()
SeekingIteratorseekToFirst in interface SeekingIterator<K,V>public final void seek(K targetKey)
SeekingIteratorseek 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.