Package org.graalvm.collections
Interface MapCursor<K,V>
- All Superinterfaces:
UnmodifiableMapCursor<K,
V>
Cursor to iterate over a mutable map.
- Since:
- 19.0
-
Method Summary
Methods inherited from interface org.graalvm.collections.UnmodifiableMapCursor
advance, getKey, getValue
-
Method Details
-
remove
void remove()Remove the current entry from the map. May only be called once. After callingremove()
, it is no longer valid to callUnmodifiableMapCursor.getKey()
orUnmodifiableMapCursor.getValue()
on the current entry.- Since:
- 19.0
-
setValue
Set the value of the current entry.- Parameters:
newValue
- new value to be associated with the current key.- Returns:
- previous value associated with the current key.
- Since:
- 22.1
-