Package gov.nasa.pds.objectAccess.array
Class DoubleAdapter
java.lang.Object
gov.nasa.pds.objectAccess.array.DoubleAdapter
- All Implemented Interfaces:
DataTypeAdapter
- Direct Known Subclasses:
ComplexDoubleAdapter
Implements a data type adapter for double values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetDouble(ByteBuffer buf) Gets the value as a double.intgetInt(ByteBuffer buf) Gets the value as an int.longgetLong(ByteBuffer buf) Gets the value as a long.protected doublegetValue(ByteBuffer buf)
-
Constructor Details
-
DoubleAdapter
public DoubleAdapter(boolean isBigEndian) Creates a new instance.- Parameters:
isBigEndian- true, if element is big-endian
-
-
Method Details
-
getInt
Description copied from interface:DataTypeAdapterGets the value as an int.- Specified by:
getIntin interfaceDataTypeAdapter- Parameters:
buf- the buffer from which to get the value- Returns:
- the value, as an int
-
getLong
Description copied from interface:DataTypeAdapterGets the value as a long.- Specified by:
getLongin interfaceDataTypeAdapter- Parameters:
buf- the buffer from which to get the value- Returns:
- the value, as a long
-
getDouble
Description copied from interface:DataTypeAdapterGets the value as a double.- Specified by:
getDoublein interfaceDataTypeAdapter- Parameters:
buf- the buffer from which to get the value- Returns:
- the value, as a double
-
getValue
-