remove

fun <T> LongSparseArray<T>.remove(key: Long, value: T): Boolean(source)
fun <T> SparseArray<T>.remove(key: Int, value: T): Boolean(source)

Removes the entry for key only if it is mapped to value.


Removes the entry for key only if it is set to value.