contains

operator fun <Type> GdxArray<Type>.contains(element: Type): Boolean

Allows to check if an array contains an element using the "in" operator.

Return

true if the element is equal to any value stored in the array.

Parameters

element

might be in the array.


operator fun <Key> GdxMap<Key, *>.contains(key: Key): Boolean
operator fun IntIntMap.contains(key: Int): Boolean
operator fun IntFloatMap.contains(key: Int): Boolean
operator fun IntMap<*>.contains(key: Int): Boolean

Return

true if a value is associated with passed key. False otherwise.

Parameters

key

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