public class SkipIterator<K extends Comparable<? super K>,V> extends Object implements ListIterator<V>
Modifier and Type | Field and Description |
---|---|
protected int |
index |
protected SkipSpan<K,V> |
ss |
Modifier | Constructor and Description |
---|---|
protected |
SkipIterator() |
|
SkipIterator(SkipSpan<K,V> ss,
int index) |
Modifier and Type | Method and Description |
---|---|
void |
add(V o) |
boolean |
hasNext() |
boolean |
hasPrevious() |
V |
next() |
int |
nextIndex() |
K |
nextKey()
The key.
|
V |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(V o) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected SkipSpan<K extends Comparable<? super K>,V> ss
protected int index
public boolean hasNext()
public V next()
next
in interface Iterator<V>
next
in interface ListIterator<V>
NoSuchElementException
public K nextKey()
NoSuchElementException
public boolean hasPrevious()
hasPrevious
in interface ListIterator<V>
public V previous()
previous
in interface ListIterator<V>
NoSuchElementException
public void add(V o)
add
in interface ListIterator<V>
public void remove()
public void set(V o)
set
in interface ListIterator<V>
public int nextIndex()
nextIndex
in interface ListIterator<V>
public int previousIndex()
previousIndex
in interface ListIterator<V>