What is the main difference between calling remove() or delete() on a SparseArray, because they both accept key's as arguments. Thanks.
Asked
Active
Viewed 2,132 times
1 Answers
9
There is no difference. Quoting the documentation for remove()
:
Alias for delete(int).
In other words, they do the same thing. In the current implementation, remove()
calls delete()
.
![](../../users/profiles/115145.webp)
CommonsWare
- 910,778
- 176
- 2,215
- 2,253