- keyAt
Given an index in the range 0...size()-1, returns the key from the indexth
key-value mapping that th
- size
Returns the number of key-value mappings that this SparseArray currently stores.
- valueAt
Given an index in the range 0...size()-1, returns the value from the indexth
key-value mapping that
- <init>
Creates a new SparseArray containing no mappings that will not require any
additional memory allocat
- get
Gets the Object mapped from the specified key, or the specified Object if no
such mapping has been m
- put
Adds a mapping from the specified key to the specified value, replacing the
previous mapping from th
- append
Puts a key/value pair into the array, optimizing for the case where the key is
greater than all exis
- binarySearch
- delete
Removes the mapping from the specified key, if there was any.
- ensureCapacity
Increases the size of the underlying storage if needed, to ensure that it can
hold the specified num
- gc
- indexOfKey
Returns the index for which #keyAt would return the specified key, or a negative
number if the speci