|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.objectAccess.array.DoubleAdapter
public class DoubleAdapter
Implements a data type adapter for double values.
Constructor Summary | |
---|---|
DoubleAdapter(boolean isBigEndian)
Creates a new instance. |
Method Summary | |
---|---|
double |
getDouble(ByteBuffer buf)
Gets the value as a double. |
int |
getInt(ByteBuffer buf)
Gets the value as an int. |
long |
getLong(ByteBuffer buf)
Gets the value as a long. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoubleAdapter(boolean isBigEndian)
isBigEndian
- true, if element is big-endianMethod Detail |
---|
public int getInt(ByteBuffer buf)
DataTypeAdapter
getInt
in interface DataTypeAdapter
buf
- the buffer from which to get the value
public long getLong(ByteBuffer buf)
DataTypeAdapter
getLong
in interface DataTypeAdapter
buf
- the buffer from which to get the value
public double getDouble(ByteBuffer buf)
DataTypeAdapter
getDouble
in interface DataTypeAdapter
buf
- the buffer from which to get the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |