K - Type of the record's keyV - Type of the record's valuepublic interface SequentialCursor<K,V> extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
K |
getKey()
Returns the key of the record on which this cursor is currently positioned.
|
V |
getValue()
Returns the value of the record on which this cursor is currently positioned.
|
boolean |
isDefined()
Check whether this cursor is currently pointing to valid record.
|
boolean |
next()
Moves this cursor to the next record in the tree.
|
boolean next()
true if the cursor has moved to the next record,
false if no next record exists leaving cursor
in undefined state.boolean isDefined()
true if the cursor is pointing to a valid entry,
false if cursor is not pointing to a valid entryK getKey() throws NoSuchElementException
NoSuchElementException - if the cursor is not defined.V getValue() throws NoSuchElementException
NoSuchElementException - if the cursor is not defined.void close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2010-2015 ForgeRock AS. All Rights Reserved.