Skip to content

SparseArray to SparseAdapter API Mapping Table

JaySoyer edited this page Oct 12, 2014 · 3 revisions

The following shows how a SparseArray data structure's API is mapped to it's equivalently backed adapter. Note, only non-obvious are shown. Eg, showing size() maps to count() will not be listed.

SparseArray (NF)SparseAdapter
append() appendWithId()
delete() removeWithId()
get() getItemWithId()
indexOfKey() getPosition()
indexOfValue() getPosition()
keyAt() getItemId()
put() putWithId()
remove() removeWithId()
removeAt() remove()
removeAtRange() Not Supported
setValueAt() put()
valueAt() getItem()

Clone this wiki locally