remove

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

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


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