Package gov.nasa.pds.objectAccess.array
Class DoubleAdapter
java.lang.Object
gov.nasa.pds.objectAccess.array.DoubleAdapter
- All Implemented Interfaces:
- DataTypeAdapter
public class DoubleAdapter extends Object implements DataTypeAdapter
Implements a data type adapter for double values.
- 
Constructor SummaryConstructors Constructor Description DoubleAdapter(boolean isBigEndian)Creates a new instance.
- 
Method SummaryModifier and Type Method Description doublegetDouble(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.
- 
Constructor Details- 
DoubleAdapterpublic DoubleAdapter(boolean isBigEndian)Creates a new instance.- Parameters:
- isBigEndian- true, if element is big-endian
 
 
- 
- 
Method Details- 
getIntDescription copied from interface:DataTypeAdapterGets the value as an int.- Specified by:
- getIntin interface- DataTypeAdapter
- Parameters:
- buf- the buffer from which to get the value
- Returns:
- the value, as an int
 
- 
getLongDescription copied from interface:DataTypeAdapterGets the value as a long.- Specified by:
- getLongin interface- DataTypeAdapter
- Parameters:
- buf- the buffer from which to get the value
- Returns:
- the value, as a long
 
- 
getDoubleDescription copied from interface:DataTypeAdapterGets the value as a double.- Specified by:
- getDoublein interface- DataTypeAdapter
- Parameters:
- buf- the buffer from which to get the value
- Returns:
- the value, as a double
 
 
-