org.knime.core.data
Class DoubleValueComparator
java.lang.Object
org.knime.core.data.DataValueComparator
org.knime.core.data.DoubleValueComparator
- All Implemented Interfaces:
- Comparator<DataCell>
public class DoubleValueComparator
- extends DataValueComparator
Comparator returned by the DoubleValue
interface.
- Author:
- Michael Berthold, University of Konstanz
- See Also:
DoubleValue.UTILITY
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleValueComparator
public DoubleValueComparator()
compareDataValues
public int compareDataValues(DataValue v1,
DataValue v2)
- Compares two
DoubleValue
s based on their generic
double
.
- Specified by:
compareDataValues
in class DataValueComparator
- Parameters:
v1
- the first DoubleValue
to compare the other withv2
- the other DoubleValue
to compare the first with
- Returns:
- what a comparator is supposed to return.
- Throws:
ClassCastException
- If one of the arguments is
not DoubleValue
type.
NullPointerException
- If any argument is null
.- See Also:
Double.compare(double,double)
,
#compareDataValues(DataValue, DataValue)
Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
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.