public class SparseArray extends Array implements java.io.Serializable
Array.ArrayType
Modifier and Type | Method and Description |
---|---|
int |
index(int position)
Returns the index of the value stored at the given position
|
boolean |
isSparse()
Overrides isSparse() in Array and always returns true.
|
int |
locateIndex(int index)
Locates the greatest index that is not greater than the
given index.
|
int |
numNonZero()
Get the number of non-zero values in this sparse array
|
int |
numValues()
Get the number of values in this array.
|
java.lang.String |
toString() |
java.lang.String |
value(int arrIndex)
Gets the value at index from the array.
|
contains, contains, contains, contains, create, create, getType, isArray, valueDouble, valueFloat, valueInt, valueSparse, valueSparseDouble, valueSparseFloat, valueSparseInt, valueSparseString, valueString
public boolean isSparse()
public int numValues()
public int numNonZero()
public int index(int position)
public int locateIndex(int index)
public java.lang.String value(int arrIndex) throws java.lang.Exception