|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.objectAccess.array.ArrayAdapter
public class ArrayAdapter
Implements a class that gives access to the elements of an array.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayAdapter(int[] dimensions, ByteBuffer buf, ElementType elementType)
dimensions
- the array dimensionsbuf
- the byte buffer containing the array dataelementType
- the elmeent typeMethod Detail |
---|
public int getElementSize()
public int getInt(int row, int column)
row
- the rowcolumn
- the column
public long getLong(int row, int column)
row
- the rowcolumn
- the column
public double getDouble(int row, int column)
row
- the rowcolumn
- the column
public int getInt(int i1, int i2, int i3)
i1
- the first indexi2
- the second indexi3
- the third index
public long getLong(int i1, int i2, int i3)
i1
- the first indexi2
- the second indexi3
- the third index
public double getDouble(int i1, int i2, int i3)
i1
- the first indexi2
- the second indexi3
- the third index
public int getInt(int[] position)
position
- the indices of the element
public long getLong(int[] position)
position
- the indices of the element
public double getDouble(int[] position)
position
- the indices of the element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |