Added in API level 1
SparseIntArray
public
class
SparseIntArray
extends Object
implements
Cloneable
| java.lang.Object | |
| ↳ | android.util.SparseIntArray |
SparseIntArrays map integers to integers. Unlike a normal array of integers, there can be gaps in the indices. It is intended to be more memory efficient than using a HashMap to map Integers to Integers, both because it avoids auto-boxing keys and values and its data structure doesn't rely on an extra entry object for each mapping