get

operator fun <Type> GdxArray<Type>.get(index: Int, alternative: Type): Type

Return

a non-null value of stored element or the alternative.

Parameters

index

index of the element in the array.

alternative

returned if index is out of bounds or the element is null.


operator fun IntIntMap.get(key: Int): Int

Return

value associated with this key if present in this map, 0f otherwise. Use IntIntMap.get with second argument (default value) if you want predictable behavior in case of missing keys.

Parameters

key

a value might be assigned to this key and stored in the map.

See also

IntIntMap.get

operator fun IntFloatMap.get(key: Int): Float

Return

value associated with this key if present in this map, 0f otherwise. Use IntFloatMap.get with second argument (default value) if you want predictable behavior in case of missing keys.

Parameters

key

a value might be assigned to this key and stored in the map.

See also

IntFloatMap.get