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