Top Description Methods
org.graalvm.collections

public Interface MapCursor<K, V>

extends UnmodifiableMapCursor<K, V>

Cursor to iterate over a mutable map.
Since
19.0

Method Summary

Modifier and TypeMethod and Description
public void
remove()

Remove the current entry from the map.

public default V

Returns:

previous value associated with the current key.
setValue
(V
new value to be associated with the current key.
newValue
)

Set the value of the current entry.

Inherited from org.graalvm.collections.UnmodifiableMapCursor:
advancegetKeygetValue

Method Detail

removeback to summary
public void remove()

Remove the current entry from the map. May only be called once. After calling remove(), it is no longer valid to call getKey() or getValue() on the current entry.

Since
19.0
setValueback to summary
public default V setValue(V newValue)

Set the value of the current entry.

Parameters
newValue:V

new value to be associated with the current key.

Returns:V

previous value associated with the current key.

Since
22.1