Class PairSeq.Cursor
java.lang.Object
zeroecho.core.marshal.PairSeq.Cursor
- Enclosing class:
PairSeq
-
Constructor Summary
ConstructorsConstructorDescriptionCursor()Creates a cursor positioned before the first pair in the enclosing sequence. -
Method Summary
-
Constructor Details
-
Cursor
public Cursor()Creates a cursor positioned before the first pair in the enclosing sequence.
-
-
Method Details
-
next
public boolean next()Advances to the next pair if available.- Returns:
trueif advanced to a valid pair,falseif end reached
-
key
Returns the current key.- Returns:
- key string
- Throws:
IndexOutOfBoundsException- if not positioned on a valid pair
-
value
Returns the current value.- Returns:
- value string
- Throws:
IndexOutOfBoundsException- if not positioned on a valid pair
-