net.metanotion.util.skiplist
public class SkipIterator extends Object implements ListIterator
Modifier and Type | Field and Description |
---|---|
protected int |
index |
protected SkipSpan |
ss |
Modifier | Constructor and Description |
---|---|
protected |
SkipIterator() |
|
SkipIterator(SkipSpan ss,
int index) |
Modifier and Type | Method and Description |
---|---|
void |
add(Object o) |
boolean |
hasNext() |
boolean |
hasPrevious() |
Object |
next() |
int |
nextIndex() |
Comparable |
nextKey()
The key.
|
Object |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(Object o) |
protected SkipSpan ss
protected int index
protected SkipIterator()
public SkipIterator(SkipSpan ss, int index)
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in interface ListIterator
public Object next()
next
in interface Iterator
next
in interface ListIterator
NoSuchElementException
public Comparable nextKey()
NoSuchElementException
public boolean hasPrevious()
hasPrevious
in interface ListIterator
public Object previous()
previous
in interface ListIterator
NoSuchElementException
public void add(Object o)
add
in interface ListIterator
public void remove()
remove
in interface Iterator
remove
in interface ListIterator
public void set(Object o)
set
in interface ListIterator
public int nextIndex()
nextIndex
in interface ListIterator
public int previousIndex()
previousIndex
in interface ListIterator