public abstract class DataValueComparator extends Object implements Comparator<DataCell>
DataValueobjects. An instance of this class is returned by each
DataValue.UtilityFactoryimplementation. Implementations can safely assume that objects passed to the
compareDataValues(DataValue, DataValue)method support a type cast to that type of the
DataValuereturning this comparator.
Note: this comparator imposes orderings that are inconsistent with equals.
That is, the return value zero is not equivalent to equals returning
true, it rather says "don't know". Meaning, if two
DataValues cannot be compared (because they represent completely
different value types) the comparator will return zero - and equals will
|Modifier||Constructor and Description|
Create a new
|Modifier and Type||Method and Description|
Do not call this function, rather call the
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
DataValuecomparator. This constructor does nothing.
DataCells representing missing values, before it delegates the actual comparison to the derived class, by calling
compareDataValues(DataValue, DataValue). Missing cells are considered to be smaller than any other non-missing
DataCell, and two missing cells are not comparable (returns 0). Note: return value 0 is not equivalent to
c2, rather they are not comparable at all.
c1- the first
DataCellto compare the other with
c2- the other
DataCellto compare the first with
c1is smaller than
c2, a positive number if
c1is larger than
c2, otherwise zero
NullPointerException- if any of the objects is
compare(DataCell, DataCell)method, which handles missing cells. The derived class should compare the two passed
DataValues. It can be safely assumed that both values are castable to the specific type of the
DataValuethat returned this comparator.
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.