Iterator<V>
, ListIterator<V>
IBSkipIterator
public class SkipIterator<K extends Comparable<? super K>,V> extends Object implements ListIterator<V>
Modifier and Type | Field | Description |
---|---|---|
protected int |
index |
|
protected SkipSpan<K,V> |
ss |
Modifier | Constructor | Description |
---|---|---|
protected |
SkipIterator() |
|
|
SkipIterator(SkipSpan<K,V> ss,
int index) |
Modifier and Type | Method | 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) |
forEachRemaining
protected SkipSpan<K extends Comparable<? super K>,V> ss
protected int index
public boolean hasNext()
hasNext
in interface Iterator<K extends Comparable<? super K>>
hasNext
in interface ListIterator<K extends Comparable<? super K>>
public V next()
next
in interface Iterator<K extends Comparable<? super K>>
next
in interface ListIterator<K extends Comparable<? super K>>
NoSuchElementException
public K nextKey()
NoSuchElementException
public boolean hasPrevious()
hasPrevious
in interface ListIterator<K extends Comparable<? super K>>
public V previous()
previous
in interface ListIterator<K extends Comparable<? super K>>
NoSuchElementException
public void add(V o)
add
in interface ListIterator<K extends Comparable<? super K>>
public void remove()
remove
in interface Iterator<K extends Comparable<? super K>>
remove
in interface ListIterator<K extends Comparable<? super K>>
public void set(V o)
set
in interface ListIterator<K extends Comparable<? super K>>
public int nextIndex()
nextIndex
in interface ListIterator<K extends Comparable<? super K>>
public int previousIndex()
previousIndex
in interface ListIterator<K extends Comparable<? super K>>