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