public interface Cursor<KEY,VALUE>
extends java.util.Iterator<VALUE>
Modifier and Type | Method and Description |
---|---|
void |
add(KEY key,
VALUE reference)
Deprecated.
use key parameter can be omitted, so use
add(Object)
instead |
void |
add(VALUE reference)
Add an unkeyed element to the collection.
|
VALUE |
end()
move to the last element and return that.
|
boolean |
hasPrev() |
VALUE |
next(int count)
Returns the count next element in the iteration.
|
VALUE |
prev() |
void |
setKey(KEY key)
Point the iterator to a particular keyed entry.
|
@Deprecated void add(KEY key, VALUE reference)
add(Object)
insteadkey
- the key of the value to addreference
- the value to addvoid add(VALUE reference)
reference
- the value to addVALUE end()
boolean hasPrev()
VALUE next(int count)
count
- the offsetjava.util.NoSuchElementException
- if the iteration has no more elementsVALUE prev()
void setKey(KEY key)
key
- the key to search for