SparseArray remove() 和 delete() 有什么区别?

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

在 SparseArray 上调用 remove() 或 delete() 的主要区别是什么,因为它们都接受键作为参数。 谢谢。

没有区别。引用 the documentation for remove():

Alias for delete(int).

换句话说,他们做同样的事情。在 the current implementation 中,remove() 调用 delete()