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
BooleanCell s. |
static class |
BooleanCell.BooleanSerializer
Factory for (de-)serializing a BooleanCell.
|
BooleanValue.BooleanUtilityFactory
IntValue.IntUtilityFactory
LongValue.LongUtilityFactory
DoubleValue.DoubleUtilityFactory
ComplexNumberValue.ComplexNumberUtilityFactory
FuzzyNumberValue.FuzzyNumberUtilityFactory
FuzzyIntervalValue.FuzzyIntervalUtilityFactory
DataValue.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) . |
UTILITY
UTILITY
UTILITY
UTILITY
UTILITY
UTILITY
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, isMissing
public 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)
insteadDataCell
public boolean getBooleanValue()
getBooleanValue
in interface BooleanValue
boolean
value.public int getIntValue()
getIntValue
in interface IntValue
int
value.public long getLongValue()
getLongValue
in interface LongValue
long
value.public double getDoubleValue()
getDoubleValue
in interface DoubleValue
double
value.public double getCore()
getCore
in interface FuzzyNumberValue
public double getMaxSupport()
getMaxSupport
in interface FuzzyIntervalValue
getMaxSupport
in interface FuzzyNumberValue
public double getMinSupport()
getMinSupport
in interface FuzzyIntervalValue
getMinSupport
in interface FuzzyNumberValue
public double getMaxCore()
getMaxCore
in interface FuzzyIntervalValue
public double getMinCore()
getMinCore
in interface FuzzyIntervalValue
public double getCenterOfGravity()
getCenterOfGravity
in interface FuzzyIntervalValue
public double getImaginaryValue()
getImaginaryValue
in interface ComplexNumberValue
public double getRealValue()
getRealValue
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 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 DataCell
DataCell
Object.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.