Interface JSHashMap.Cursor
- Enclosing class:
JSHashMap
public static interface JSHashMap.Cursor
-
Method Details
-
advance
boolean advance()Advances to the next entry.- Returns:
trueif a next entry exists,falseif there is no next entry.
-
shouldAdvance
boolean shouldAdvance()Determines whether the current entry is valid.- Returns:
trueifadvance()has not been called yet or if the current entry is not valid anymore (i.e. has been removed), returnsfalseotherwise.
-
getKey
Object getKey()The key of the current entry. -
getValue
Object getValue()The value of the current entry. -
copy
JSHashMap.Cursor copy()Copies the cursor (including the current state/entry).
-