public final class ITableArray extends Object implements RuntimeTable<ITable>
Modifier and Type | Field and Description |
---|---|
private ITable[] |
backingData
The backing data used during boot image writing.
|
Modifier | Constructor and Description |
---|---|
private |
ITableArray(int size) |
Modifier and Type | Method and Description |
---|---|
static ITableArray |
allocate(int size)
Create a new array of
ITable of the specified size. |
ITable |
get(int index)
Get an
ITable entry from the array. |
ITable[] |
getBacking()
Return the backing array (for boot image writing)
|
int |
length()
Return the length of the array of
ITable |
void |
set(int index,
ITable value)
Set an
ITable entry in the array. |
private final ITable[] backingData
private ITableArray(int size)
public ITable[] getBacking()
getBacking
in interface RuntimeTable<ITable>
public static ITableArray allocate(int size)
ITable
of the specified size.size
- The size of the arraypublic ITable get(int index)
ITable
entry from the array.get
in interface RuntimeTable<ITable>
index
- The index of the entry to getpublic void set(int index, ITable value)
ITable
entry in the array.set
in interface RuntimeTable<ITable>
index
- The index of the entry to setvalue
- The value to set the entry to.public int length()
ITable
length
in interface RuntimeTable<ITable>