org.knime.core.data
Class DoubleValueComparator

java.lang.Object
  extended by org.knime.core.data.DataValueComparator
      extended by 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

Constructor Summary
DoubleValueComparator()
           
 
Method Summary
 int compareDataValues(DataValue v1, DataValue v2)
          Compares two DoubleValues based on their generic double.
 
Methods inherited from class org.knime.core.data.DataValueComparator
compare
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

DoubleValueComparator

public DoubleValueComparator()
Method Detail

compareDataValues

public int compareDataValues(DataValue v1,
                             DataValue v2)
Compares two DoubleValues based on their generic double.

Specified by:
compareDataValues in class DataValueComparator
Parameters:
v1 - the first DoubleValue to compare the other with
v2 - 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.