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