|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.DataCell
org.knime.core.data.def.ComplexNumberCell
public final class ComplexNumberCell
A data cell implementation holding a complex number value by storing this value in two double member variables. It provides access to the complex number value.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.knime.core.data.ComplexNumberValue |
---|
ComplexNumberValue.ComplexNumberUtilityFactory |
Nested classes/interfaces inherited from interface org.knime.core.data.DataValue |
---|
DataValue.UtilityFactory |
Field Summary | |
---|---|
static DataType |
TYPE
Convenience access method for DataType.getType(ComplexNumberCell.class). |
Fields inherited from interface org.knime.core.data.ComplexNumberValue |
---|
UTILITY |
Constructor Summary | |
---|---|
ComplexNumberCell(double real,
double imag)
Creates a new cell for a complex number. |
Method Summary | |
---|---|
protected boolean |
equalsDataCell(DataCell dc)
Derived classes implement their specific equals function here. |
static org.knime.core.data.def.ComplexNumberCell.ComplexNumberSerializer |
getCellSerializer()
Returns the factory to read/write DataCells of this class from/to a DataInput/DataOutput. |
double |
getImaginaryValue()
|
static Class<? extends DataValue> |
getPreferredValueClass()
Returns the preferred value class of this cell implementation. |
double |
getRealValue()
|
int |
hashCode()
This method must be implemented in order to ensure that two equal DataCell objects return the same hash code. |
String |
toString()
Returns the String representation of this cell's value. |
Methods inherited from class org.knime.core.data.DataCell |
---|
equals, getType, isMissing |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final DataType TYPE
Constructor Detail |
---|
public ComplexNumberCell(double real, double imag)
real
- The double value.imag
- The imaginary value.Method Detail |
---|
public static final Class<? extends DataValue> getPreferredValueClass()
public static final org.knime.core.data.def.ComplexNumberCell.ComplexNumberSerializer getCellSerializer()
DataCell
public double getRealValue()
getRealValue
in interface ComplexNumberValue
public double getImaginaryValue()
getImaginaryValue
in interface ComplexNumberValue
protected boolean equalsDataCell(DataCell dc)
null
or a missing value,
to be of the same class like this.
equalsDataCell
in class DataCell
dc
- the cell to compare this to
true
if this is equal to the argument,
false
if notpublic int hashCode()
DataCell
objects return the same hash code.
hashCode
in class DataCell
DataCell
Object.hashCode()
,
DataCell.equals(java.lang.Object)
public String toString()
toString
in class DataCell
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |