Package gov.nasa.pds.objectAccess.array
Class ComplexFloatAdapter
java.lang.Object
gov.nasa.pds.objectAccess.array.FloatAdapter
gov.nasa.pds.objectAccess.array.ComplexFloatAdapter
- All Implemented Interfaces:
ComplexDataTypeAdapter,DataTypeAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetDouble(ByteBuffer buf) Gets the value as a double.doublegetImagDouble(ByteBuffer buf) Gets the imaginary value as a double.intgetImagInt(ByteBuffer buf) Gets the imaginary value as an int.longgetImagLong(ByteBuffer buf) Gets the imaginary value as a long.intgetInt(ByteBuffer buf) Gets the value as an int.longgetLong(ByteBuffer buf) Gets the value as a long.doublegetRealDouble(ByteBuffer buf) Gets the real value as a double.intgetRealInt(ByteBuffer buf) Gets the real value as an int.longgetRealLong(ByteBuffer buf) Gets the real value as a long.Methods inherited from class gov.nasa.pds.objectAccess.array.FloatAdapter
getValue
-
Constructor Details
-
ComplexFloatAdapter
public ComplexFloatAdapter(boolean isBigEndian)
-
-
Method Details
-
getInt
Description copied from interface:DataTypeAdapterGets the value as an int.- Specified by:
getIntin interfaceDataTypeAdapter- Overrides:
getIntin classFloatAdapter- 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- Overrides:
getLongin classFloatAdapter- 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- Overrides:
getDoublein classFloatAdapter- Parameters:
buf- the buffer from which to get the value- Returns:
- the value, as a double
-
getImagInt
Description copied from interface:ComplexDataTypeAdapterGets the imaginary value as an int.- Specified by:
getImagIntin interfaceComplexDataTypeAdapter- Parameters:
buf- the buffer from which to get the value- Returns:
- the imaginary value, as an int
-
getImagLong
Description copied from interface:ComplexDataTypeAdapterGets the imaginary value as a long.- Specified by:
getImagLongin interfaceComplexDataTypeAdapter- Parameters:
buf- the buffer from which to get the value- Returns:
- the imaginary value, as a long
-
getImagDouble
Description copied from interface:ComplexDataTypeAdapterGets the imaginary value as a double.- Specified by:
getImagDoublein interfaceComplexDataTypeAdapter- Parameters:
buf- the buffer from which to get the value- Returns:
- the imaginary value, as a double
-
getRealInt
Description copied from interface:ComplexDataTypeAdapterGets the real value as an int.- Specified by:
getRealIntin interfaceComplexDataTypeAdapter- Parameters:
buf- the buffer from which to get the value- Returns:
- the real value, as an int
-
getRealLong
Description copied from interface:ComplexDataTypeAdapterGets the real value as a long.- Specified by:
getRealLongin interfaceComplexDataTypeAdapter- Parameters:
buf- the buffer from which to get the value- Returns:
- the real value, as a long
-
getRealDouble
Description copied from interface:ComplexDataTypeAdapterGets the real value as a double.- Specified by:
getRealDoublein interfaceComplexDataTypeAdapter- Parameters:
buf- the buffer from which to get the value- Returns:
- the real value, as a double
-