Package gov.nasa.pds.objectAccess.array
Class ComplexDoubleAdapter
- java.lang.Object
-
- gov.nasa.pds.objectAccess.array.DoubleAdapter
-
- gov.nasa.pds.objectAccess.array.ComplexDoubleAdapter
-
- All Implemented Interfaces:
ComplexDataTypeAdapter
,DataTypeAdapter
public class ComplexDoubleAdapter extends DoubleAdapter implements ComplexDataTypeAdapter
-
-
Constructor Summary
Constructors Constructor Description ComplexDoubleAdapter(boolean isBigEndian)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDouble(java.nio.ByteBuffer buf)
Gets the value as a double.double
getImagDouble(java.nio.ByteBuffer buf)
Gets the imaginary value as a double.int
getImagInt(java.nio.ByteBuffer buf)
Gets the imaginary value as an int.long
getImagLong(java.nio.ByteBuffer buf)
Gets the imaginary value as a long.int
getInt(java.nio.ByteBuffer buf)
Gets the value as an int.long
getLong(java.nio.ByteBuffer buf)
Gets the value as a long.double
getRealDouble(java.nio.ByteBuffer buf)
Gets the real value as a double.int
getRealInt(java.nio.ByteBuffer buf)
Gets the real value as an int.long
getRealLong(java.nio.ByteBuffer buf)
Gets the real value as a long.-
Methods inherited from class gov.nasa.pds.objectAccess.array.DoubleAdapter
getValue
-
-
-
-
Method Detail
-
getInt
public int getInt(java.nio.ByteBuffer buf)
Description copied from interface:DataTypeAdapter
Gets the value as an int.- Specified by:
getInt
in interfaceDataTypeAdapter
- Overrides:
getInt
in classDoubleAdapter
- Parameters:
buf
- the buffer from which to get the value- Returns:
- the value, as an int
-
getLong
public long getLong(java.nio.ByteBuffer buf)
Description copied from interface:DataTypeAdapter
Gets the value as a long.- Specified by:
getLong
in interfaceDataTypeAdapter
- Overrides:
getLong
in classDoubleAdapter
- Parameters:
buf
- the buffer from which to get the value- Returns:
- the value, as a long
-
getDouble
public double getDouble(java.nio.ByteBuffer buf)
Description copied from interface:DataTypeAdapter
Gets the value as a double.- Specified by:
getDouble
in interfaceDataTypeAdapter
- Overrides:
getDouble
in classDoubleAdapter
- Parameters:
buf
- the buffer from which to get the value- Returns:
- the value, as a double
-
getImagInt
public int getImagInt(java.nio.ByteBuffer buf)
Description copied from interface:ComplexDataTypeAdapter
Gets the imaginary value as an int.- Specified by:
getImagInt
in interfaceComplexDataTypeAdapter
- Parameters:
buf
- the buffer from which to get the value- Returns:
- the imaginary value, as an int
-
getImagLong
public long getImagLong(java.nio.ByteBuffer buf)
Description copied from interface:ComplexDataTypeAdapter
Gets the imaginary value as a long.- Specified by:
getImagLong
in interfaceComplexDataTypeAdapter
- Parameters:
buf
- the buffer from which to get the value- Returns:
- the imaginary value, as a long
-
getImagDouble
public double getImagDouble(java.nio.ByteBuffer buf)
Description copied from interface:ComplexDataTypeAdapter
Gets the imaginary value as a double.- Specified by:
getImagDouble
in interfaceComplexDataTypeAdapter
- Parameters:
buf
- the buffer from which to get the value- Returns:
- the imaginary value, as a double
-
getRealInt
public int getRealInt(java.nio.ByteBuffer buf)
Description copied from interface:ComplexDataTypeAdapter
Gets the real value as an int.- Specified by:
getRealInt
in interfaceComplexDataTypeAdapter
- Parameters:
buf
- the buffer from which to get the value- Returns:
- the real value, as an int
-
getRealLong
public long getRealLong(java.nio.ByteBuffer buf)
Description copied from interface:ComplexDataTypeAdapter
Gets the real value as a long.- Specified by:
getRealLong
in interfaceComplexDataTypeAdapter
- Parameters:
buf
- the buffer from which to get the value- Returns:
- the real value, as a long
-
getRealDouble
public double getRealDouble(java.nio.ByteBuffer buf)
Description copied from interface:ComplexDataTypeAdapter
Gets the real value as a double.- Specified by:
getRealDouble
in interfaceComplexDataTypeAdapter
- Parameters:
buf
- the buffer from which to get the value- Returns:
- the real value, as a double
-
-