public class ArrayAdapter extends Object
Constructor and Description |
---|
ArrayAdapter(int[] dimensions,
ByteBuffer buf,
ElementType elementType)
Creates a new array adapter with given dimensions, byte buffer
with the array data, and element data type name.
|
Modifier and Type | Method and Description |
---|---|
double |
getDouble(int[] position)
Gets an array element, as a double.
|
double |
getDouble(int row,
int column)
Gets an element of a 2-D array, as a double.
|
double |
getDouble(int i1,
int i2,
int i3)
Gets an element of a 3-D array, as a double.
|
int |
getElementSize()
Gets the size of each element.
|
int |
getInt(int[] position)
Gets an array element, as an int.
|
int |
getInt(int row,
int column)
Gets an element of a 2-D array, as an int.
|
int |
getInt(int i1,
int i2,
int i3)
Gets an element of a 3-D array, as an int.
|
long |
getLong(int[] position)
Gets an array element, as a long.
|
long |
getLong(int row,
int column)
Gets an element of a 2-D array, as a long.
|
long |
getLong(int i1,
int i2,
int i3)
Gets an element of a 3-D array, as a long.
|
public ArrayAdapter(int[] dimensions, ByteBuffer buf, ElementType elementType)
dimensions
- the array dimensionsbuf
- the byte buffer containing the array dataelementType
- the elmeent typepublic int getElementSize()
public int getInt(int row, int column)
row
- the rowcolumn
- the columnpublic long getLong(int row, int column)
row
- the rowcolumn
- the columnpublic double getDouble(int row, int column)
row
- the rowcolumn
- the columnpublic int getInt(int i1, int i2, int i3)
i1
- the first indexi2
- the second indexi3
- the third indexpublic long getLong(int i1, int i2, int i3)
i1
- the first indexi2
- the second indexi3
- the third indexpublic double getDouble(int i1, int i2, int i3)
i1
- the first indexi2
- the second indexi3
- the third indexpublic int getInt(int[] position)
position
- the indices of the elementpublic long getLong(int[] position)
position
- the indices of the elementpublic double getDouble(int[] position)
position
- the indices of the elementCopyright © 2010–2016 Planetary Data System. All rights reserved.