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 doublegetDouble(java.nio.ByteBuffer buf)Gets the value as a double.doublegetImagDouble(java.nio.ByteBuffer buf)Gets the imaginary value as a double.intgetImagInt(java.nio.ByteBuffer buf)Gets the imaginary value as an int.longgetImagLong(java.nio.ByteBuffer buf)Gets the imaginary value as a long.intgetInt(java.nio.ByteBuffer buf)Gets the value as an int.longgetLong(java.nio.ByteBuffer buf)Gets the value as a long.doublegetRealDouble(java.nio.ByteBuffer buf)Gets the real value as a double.intgetRealInt(java.nio.ByteBuffer buf)Gets the real value as an int.longgetRealLong(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:DataTypeAdapterGets the value as an int.- Specified by:
getIntin interfaceDataTypeAdapter- Overrides:
getIntin 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:DataTypeAdapterGets the value as a long.- Specified by:
getLongin interfaceDataTypeAdapter- Overrides:
getLongin 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:DataTypeAdapterGets the value as a double.- Specified by:
getDoublein interfaceDataTypeAdapter- Overrides:
getDoublein 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: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
public long getImagLong(java.nio.ByteBuffer buf)
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
public double getImagDouble(java.nio.ByteBuffer buf)
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
public int getRealInt(java.nio.ByteBuffer buf)
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
public long getRealLong(java.nio.ByteBuffer buf)
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
public double getRealDouble(java.nio.ByteBuffer buf)
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
-
-