Package gov.nasa.pds.objectAccess.array
Interface DataTypeAdapter
- All Known Implementing Classes:
- DoubleAdapter,- FloatAdapter,- IntegerAdapter
public interface DataTypeAdapter
Defines an interface for getting a data type in various formats.
- 
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.
- 
Method Details- 
getIntGets the value as an int.- Parameters:
- buf- the buffer from which to get the value
- Returns:
- the value, as an int
 
- 
getLongGets the value as a long.- Parameters:
- buf- the buffer from which to get the value
- Returns:
- the value, as a long
 
- 
getDoubleGets the value as a double.- Parameters:
- buf- the buffer from which to get the value
- Returns:
- the value, as a double
 
 
-