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 | indexCurrent index position. |
protected SkipSpan<K,V> | ssThe current span being iterated over. |
| Modifier | Constructor and Description |
|---|---|
protected | SkipIterator()Constructor for subclass use. |
| SkipIterator(SkipSpan<K,V> ss,
int index)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
void | add(V o)Not supported. |
boolean | hasNext() |
boolean | hasPrevious() |
V | next() |
int | nextIndex()Not supported. |
K | nextKey()The key. |
V | previous() |
int | previousIndex()Not supported. |
void | remove()Not supported. |
void | set(V o)Not supported. |
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>