|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuntimeTable<T>
This interface is used to indicate a type will behave as a runtime table. Runtime tables are used to implement arrays whose elements can only be manipulated by the the get and set methods of the table. Every runtime table will have a static allocate method and implement the methods below.
TypeReference.isRuntimeTable()
Method Summary | |
---|---|
T |
get(int index)
Get a value from the table. |
T[] |
getBacking()
Only called at boot image write time. |
int |
length()
Get the table length. |
void |
set(int index,
T value)
Set a value to the table. |
Method Detail |
---|
T get(int index)
index
- location to read
void set(int index, T value)
index
- location to writevalue
- to writeint length()
T[] getBacking()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |