SparseArray remove() and delete() what's the difference?

2.4k Views Asked by At

What is the main difference between calling remove() or delete() on a SparseArray, because they both accept key's as arguments. Thanks.

1

There are 1 best solutions below

0
On BEST ANSWER

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().