Package gov.nasa.pds.objectAccess.array
Class FloatAdapter
- java.lang.Object
- 
- gov.nasa.pds.objectAccess.array.FloatAdapter
 
- 
- All Implemented Interfaces:
- DataTypeAdapter
 - Direct Known Subclasses:
- ComplexFloatAdapter
 
 public class FloatAdapter extends java.lang.Object implements DataTypeAdapter Implements a data type adapter for float values.
- 
- 
Constructor SummaryConstructors Constructor Description FloatAdapter(boolean isBigEndian)Creates a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetDouble(java.nio.ByteBuffer buf)Gets the value as a double.intgetInt(java.nio.ByteBuffer buf)Gets the value as an int.longgetLong(java.nio.ByteBuffer buf)Gets the value as a long.protected doublegetValue(java.nio.ByteBuffer buf)
 
- 
- 
- 
Method Detail- 
getIntpublic int getInt(java.nio.ByteBuffer buf) Description 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
 
 - 
getLongpublic long getLong(java.nio.ByteBuffer buf) Description 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
 
 - 
getDoublepublic double getDouble(java.nio.ByteBuffer buf) Description 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
 
 - 
getValueprotected double getValue(java.nio.ByteBuffer buf) 
 
- 
 
-