public class IndexedAccessor extends AccessorWrapper
Modifier and Type | Field and Description |
---|---|
(package private) long |
index
0-based index of the requested array element.
|
Constructor and Description |
---|
IndexedAccessor(BaseDataType[] array,
long index)
Creates the accessor for the given element of the given array.
|
IndexedAccessor(BaseDataType[] array,
NumberType index)
Creates the accessor for the given element of the given array.
|
Modifier and Type | Method and Description |
---|---|
long |
getIndex()
Get 0-based index of the requested array element.
|
get, set
public IndexedAccessor(BaseDataType[] array, long index)
array
- Array to dereference.index
- 0-based index of the requested array element.public IndexedAccessor(BaseDataType[] array, NumberType index)
array
- Array to dereference.index
- 0-based index of the requested array element.