public final class BooleanCell extends DataCell implements BooleanValue, IntValue, LongValue, DoubleValue, ComplexNumberValue, FuzzyNumberValue, FuzzyIntervalValue, BoundedValue, NominalValue
boolean member. It provides an boolean value, a double
value, a fuzzy number value, as well as a fuzzy interval value.
This class is not to be instantiated; use the singleton representing the true and false state.
| Modifier and Type | Class and Description |
|---|---|
static class |
BooleanCell.BooleanCellFactory
Factory for
BooleanCells. |
static class |
BooleanCell.BooleanSerializer
Factory for (de-)serializing a BooleanCell.
|
BooleanValue.BooleanUtilityFactoryIntValue.IntUtilityFactoryLongValue.LongUtilityFactoryDoubleValue.DoubleUtilityFactoryComplexNumberValue.ComplexNumberUtilityFactoryFuzzyNumberValue.FuzzyNumberUtilityFactoryFuzzyIntervalValue.FuzzyIntervalUtilityFactoryDataValue.UtilityFactory| Modifier and Type | Field and Description |
|---|---|
static BooleanCell |
FALSE
FALSE instance.
|
static BooleanCell |
TRUE
TRUE instance.
|
static DataType |
TYPE
Convenience access member for
DataType.getType(BooleanCell.class). |
UTILITYUTILITYUTILITYUTILITYUTILITYUTILITY| Constructor and Description |
|---|
BooleanCell(boolean b)
Creates new cell for a generic boolean value.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
equalsDataCell(DataCell dc)
Derived classes implement their specific equals function here.
|
static BooleanCell |
get(boolean value)
Deprecated.
use
BooleanCell.BooleanCellFactory.create(boolean) instead |
boolean |
getBooleanValue() |
static DataCellSerializer<BooleanCell> |
getCellSerializer()
Deprecated.
use
DataTypeRegistry.getSerializer(Class) instead |
double |
getCenterOfGravity() |
double |
getCore() |
double |
getDoubleValue()
Returns 1 if value is true or 0 for false.
|
double |
getImaginaryValue() |
int |
getIntValue()
Returns 1 if value is true or 0 for false.
|
long |
getLongValue()
Returns 1 if value is true or 0 for false.
|
double |
getMaxCore() |
double |
getMaxSupport() |
double |
getMinCore() |
double |
getMinSupport() |
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.
|
equalContent, equals, getType, isMissingpublic static final BooleanCell TRUE
public static final BooleanCell FALSE
public static final DataType TYPE
DataType.getType(BooleanCell.class).DataType.getType(Class)BooleanCell(boolean b)
b - The boolean value to store.@Deprecated public static final BooleanCell get(boolean value)
BooleanCell.BooleanCellFactory.create(boolean) insteadvalue - The value@Deprecated public static final DataCellSerializer<BooleanCell> getCellSerializer()
DataTypeRegistry.getSerializer(Class) insteadDataCellpublic boolean getBooleanValue()
getBooleanValue in interface BooleanValueboolean value.public int getIntValue()
getIntValue in interface IntValueint value.public long getLongValue()
getLongValue in interface LongValuelong value.public double getDoubleValue()
getDoubleValue in interface DoubleValuedouble value.public double getCore()
getCore in interface FuzzyNumberValuepublic double getMaxSupport()
getMaxSupport in interface FuzzyIntervalValuegetMaxSupport in interface FuzzyNumberValuepublic double getMinSupport()
getMinSupport in interface FuzzyIntervalValuegetMinSupport in interface FuzzyNumberValuepublic double getMaxCore()
getMaxCore in interface FuzzyIntervalValuepublic double getMinCore()
getMinCore in interface FuzzyIntervalValuepublic double getCenterOfGravity()
getCenterOfGravity in interface FuzzyIntervalValuepublic double getImaginaryValue()
getImaginaryValue in interface ComplexNumberValuepublic double getRealValue()
getRealValue in interface ComplexNumberValueprotected boolean equalsDataCell(DataCell dc)
null or a missing value,
to be of the same class like this.equalsDataCell in class DataCelldc - the cell to compare this totrue if this is equal to the argument,
false if notpublic int hashCode()
DataCell objects return the same hash code. Note that two cells can be equal according to
DataCell.equalsDataCell(DataCell) and DataCell.equalContent(DataValue) so two different cells implementations
with the same preferred value must have the same hash code.hashCode in class DataCellDataCellObject.hashCode(),
DataCell.equals(java.lang.Object)
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.