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() |
void |
delete()
Deletes the record on which this cursor is currently positioned.
|
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 delete() throws NoSuchElementException, UnsupportedOperationException
next() must be called in order to point to the next record. The behavior of
methods getKey() and getValue() after this method returns is undefined.NoSuchElementException - if the cursor is not defined.UnsupportedOperationException - if the cursor implementation does not support updates.void close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2010-2018 ForgeRock AS. All Rights Reserved.