org.knime.core.data.image.png
Class PNGImageValueComparator
java.lang.Object
org.knime.core.data.DataValueComparator
org.knime.core.data.image.png.PNGImageValueComparator
- All Implemented Interfaces:
- Comparator<DataCell>
public class PNGImageValueComparator
- extends DataValueComparator
A special DataCellComparator for the ImageCells.
- Author:
- Thomas Gabriel, KNIME.com AG, Zurich
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PNGImageValueComparator
public PNGImageValueComparator()
compareDataValues
protected int compareDataValues(DataValue v1,
DataValue v2)
- Do not call this function, rather call the
DataValueComparator.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 DataValue that returned this
comparator.
- Specified by:
compareDataValues in class DataValueComparator
- Parameters:
v1 - the first DataValue to compare the
other withv2 - the other DataValue to compare the
first with
- Returns:
- return -1 if
v1 is smaller than v2, +1
if v1 is larger than v2, 0 otherwise
Copyright, 2003 - 2012. 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.