public abstract class AbstractReverseSeekingIterator<K,V> extends Object implements ReverseSeekingIterator<K,V>
| Constructor and Description |
|---|
AbstractReverseSeekingIterator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Map.Entry<K,V> |
getNextElement() |
protected abstract Map.Entry<K,V> |
getPrevElement() |
boolean |
hasNext() |
protected abstract boolean |
hasNextInternal() |
boolean |
hasPrev() |
protected abstract boolean |
hasPrevInternal() |
Map.Entry<K,V> |
next() |
Map.Entry<K,V> |
peek() |
protected Map.Entry<K,V> |
peekInternal() |
Map.Entry<K,V> |
peekPrev() |
protected Map.Entry<K,V> |
peekPrevInternal() |
Map.Entry<K,V> |
prev() |
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 |
seekToEnd() |
protected abstract void |
seekToEndInternal() |
void |
seekToFirst()
Repositions the iterator so the beginning of this block.
|
protected abstract void |
seekToFirstInternal() |
void |
seekToLast() |
protected abstract void |
seekToLastInternal() |
public final void seekToFirst()
SeekingIteratorseekToFirst in interface SeekingIterator<K,V>public void seekToLast()
seekToLast in interface ReverseSeekingIterator<K,V>public final void seek(K targetKey)
SeekingIteratorseek in interface SeekingIterator<K,V>public final void seekToEnd()
seekToEnd in interface ReverseSeekingIterator<K,V>public final boolean hasPrev()
hasPrev in interface ReverseIterator<Map.Entry<K,V>>public final Map.Entry<K,V> prev()
prev in interface ReverseIterator<Map.Entry<K,V>>public final Map.Entry<K,V> peekPrev()
peekPrev in interface ReversePeekingIterator<Map.Entry<K,V>>public void remove()
protected abstract void seekToLastInternal()
protected abstract void seekToFirstInternal()
protected abstract void seekToEndInternal()
protected abstract void seekInternal(K targetKey)
protected abstract boolean hasNextInternal()
protected abstract boolean hasPrevInternal()
Copyright © 2011–2015. All rights reserved.