K - type of keys maintained by this iteratorV - type of values returned by this iteratorpublic 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, waitforEachRemainingprotected int index
protected SkipSpan<K extends Comparable<? super K>,V> ss
public void add(V o)
add in interface ListIterator<V>public boolean hasNext()
public boolean hasPrevious()
hasPrevious in interface ListIterator<V>public V next()
next in interface Iterator<V>next in interface ListIterator<V>NoSuchElementExceptionpublic int nextIndex()
nextIndex in interface ListIterator<V>public K nextKey()
NoSuchElementExceptionpublic V previous()
previous in interface ListIterator<V>NoSuchElementExceptionpublic int previousIndex()
previousIndex in interface ListIterator<V>public void remove()
public void set(V o)
set in interface ListIterator<V>