set

operator fun <Key, Value> GdxMap<Key, Value>.set(key: Key, value: Value): Value?
operator fun <Value> IntMap<Value>.set(key: Int, value: Value): Value?

Return

old value associated with the key or null if none.

Parameters

key

the passed value will be linked with this key.

value

will be stored in the map, accessible by the passed key.


operator fun IntIntMap.set(key: Int, value: Int)
operator fun IntFloatMap.set(key: Int, value: Float)

Parameters

key

the passed value will be linked with this key.

value

will be stored in the map, accessible by the passed key.


operator fun <Key, Value> GdxArrayMap<Key, Value>.set(key: Key, value: Value): Int

Return

index of the key and value in the underlying arrays.

Parameters

key

the passed value will be linked with this key.

value

will be stored in the map, accessible by the passed key.