在 SparseArray 上调用 remove() 或 delete() 的主要区别是什么,因为它们都接受键作为参数。 谢谢。
最佳答案
没有区别。引用 the documentation for remove()
:
Alias for delete(int).
换句话说,他们做同样的事情。在 the current implementation , remove()
调用 delete()
。
关于android - SparseArray remove() 和 delete() 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32039725/