org.knime.core.data
Class TimestampValue.TimestampValueComparator

java.lang.Object
  extended by org.knime.core.data.DataValueComparator
      extended by org.knime.core.data.TimestampValue.TimestampValueComparator
All Implemented Interfaces:
Comparator<DataCell>
Enclosing interface:
TimestampValue

public static class TimestampValue.TimestampValueComparator
extends DataValueComparator

Comparator returned by the TimestampValue interface.


Constructor Summary
TimestampValue.TimestampValueComparator()
           
 
Method Summary
 int compareDataValues(DataValue v1, DataValue v2)
          Compares two TimestampValues based on their Date value.
 
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

TimestampValue.TimestampValueComparator

public TimestampValue.TimestampValueComparator()
Method Detail

compareDataValues

public int compareDataValues(DataValue v1,
                             DataValue v2)
Compares two TimestampValues based on their Date value.

Specified by:
compareDataValues in class DataValueComparator
Parameters:
v1 - the first TimestampValue to compare the other with
v2 - the other TimestampValue to compare the first with
Returns:
what a comparator is supposed to return.
Throws:
ClassCastException - If one of the arguments is not TimestampValue type.
NullPointerException - If any argument is null.
See Also:
Date.compareTo(Date)


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.