operator fun SparseBooleanArray.contains(key: Int): Boolean
Returns true if the collection contains key. |
|
fun SparseBooleanArray.containsKey(key: Int): Boolean
Returns true if the collection contains key. |
|
fun SparseBooleanArray.containsValue(value: Boolean): Boolean
Returns true if the collection contains value. |
|
fun SparseBooleanArray.forEach(action: (key: Int, value: Boolean) -> Unit): Unit
Performs the given action for each key/value entry. |
|
fun SparseBooleanArray.getOrDefault(key: Int, defaultValue: Boolean): Boolean
Return the value corresponding to key, or defaultValue when not present. |
|
fun SparseBooleanArray.getOrElse(key: Int, defaultValue: () -> Boolean): Boolean
Return the value corresponding to key, or from defaultValue when not present. |
|
fun SparseBooleanArray.isEmpty(): Boolean
Return true when the collection contains no elements. |
|
fun SparseBooleanArray.isNotEmpty(): Boolean
Return true when the collection contains elements. |
|
fun SparseBooleanArray.keyIterator(): IntIterator
Return an iterator over the collection's keys. |
|
operator fun SparseBooleanArray.plus(other: SparseBooleanArray): SparseBooleanArray
Creates a new collection by adding or replacing entries from other. |
|
fun SparseBooleanArray.putAll(other: SparseBooleanArray): Unit
Update this collection by adding or replacing entries from other. |
|
fun SparseBooleanArray.remove(key: Int, value: Boolean): Boolean
|
|
fun SparseBooleanArray.removeAt(index: Int): Unit
Removes the mapping at the specified index. |
|
operator fun SparseBooleanArray.set(key: Int, value: Boolean): Unit
Allows the use of the index operator for storing values in the collection. |
|
val SparseBooleanArray.size: Int
Returns the number of key/value pairs in the collection. |
|
fun SparseBooleanArray.valueIterator(): BooleanIterator
Return an iterator over the collection's values. |