public class SparseMappingTable extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SparseMappingTable.Table
A table of data as stored in a SparseMappingTable.
|
Modifier and Type | Field and Description |
---|---|
static int |
ARRAY_SIZE |
static int |
INVALID_KEY |
Constructor and Description |
---|
SparseMappingTable() |
Modifier and Type | Method and Description |
---|---|
String |
dumpInternalState(boolean includeData)
Return a string for debugging.
|
static int |
getArrayFromKey(int key)
Gets the index of the array in the list of arrays.
|
static byte |
getIdFromKey(int key)
Extract the id from a key.
|
static int |
getIndexFromKey(int key)
Gets the index of a value in a long[].
|
void |
readFromParcel(Parcel in)
Read the data arrays from the parcel.
|
void |
reset()
Wipe out all the data.
|
void |
writeToParcel(Parcel out)
Write the data arrays to the parcel.
|
public static final int ARRAY_SIZE
public static final int INVALID_KEY
public void reset()
public void writeToParcel(Parcel out)
public void readFromParcel(Parcel in)
public String dumpInternalState(boolean includeData)
public static byte getIdFromKey(int key)
public static int getArrayFromKey(int key)
public static int getIndexFromKey(int key)