org.knime.base.node.viz.histogram.datamodel
Class BinDataModelComparator
java.lang.Object
org.knime.base.node.viz.histogram.datamodel.BinDataModelComparator
- All Implemented Interfaces:
- Comparator<BinDataModel>
public class BinDataModelComparator
- extends Object
- implements Comparator<BinDataModel>
Used to sort the bins in their natural order by their caption or boundaries.
- Author:
- Tobias Koetter, University of Konstanz
Field Summary |
static int |
COMPARE_BOUNDARIES
This method compares the boundaries of a bin and orders from lowest
upper bound to highest upper bound. |
static int |
COMPARE_CAPTION
This method compares the caption of two bins and orders them in natural
order. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPARE_CAPTION
public static final int COMPARE_CAPTION
- This method compares the caption of two bins and orders them in natural
order.
- See Also:
- Constant Field Values
COMPARE_BOUNDARIES
public static final int COMPARE_BOUNDARIES
- This method compares the boundaries of a bin and orders from lowest
upper bound to highest upper bound.
- See Also:
- Constant Field Values
BinDataModelComparator
public BinDataModelComparator(int compareMethod)
- Constructor for class BinDataModelComparator.
- Parameters:
compareMethod
- the method used to compare- See Also:
COMPARE_BOUNDARIES
,
COMPARE_CAPTION
compare
public int compare(BinDataModel o1,
BinDataModel o2)
-
- Specified by:
compare
in interface Comparator<BinDataModel>
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.