org.knime.base.node.preproc.colcompare
Enum ColumnComparatorNodeDialogPane.ComparatorMethod

java.lang.Object
  extended by java.lang.Enum<ColumnComparatorNodeDialogPane.ComparatorMethod>
      extended by org.knime.base.node.preproc.colcompare.ColumnComparatorNodeDialogPane.ComparatorMethod
All Implemented Interfaces:
Serializable, Comparable<ColumnComparatorNodeDialogPane.ComparatorMethod>
Enclosing class:
ColumnComparatorNodeDialogPane

public static enum ColumnComparatorNodeDialogPane.ComparatorMethod
extends Enum<ColumnComparatorNodeDialogPane.ComparatorMethod>

Comparator methods.


Enum Constant Summary
EQUAL
           
GREATER
           
GREATEREQUAL
           
LESS
           
LESSEQUAL
           
NOTEQUAL
           
 
Method Summary
(package private) abstract  boolean compare(DataCell cell1, DataCell cell2)
          Compares both cell values using the comparator method.
(package private)  int compareValue(DataCell cell1, DataCell cell2)
          Compares both cell values using the most common's super type comparator.
static ColumnComparatorNodeDialogPane.ComparatorMethod getMethod(String str)
          Returns the comparator method, specified within the Enum.toString().
static ColumnComparatorNodeDialogPane.ComparatorMethod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ColumnComparatorNodeDialogPane.ComparatorMethod[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EQUAL

public static final ColumnComparatorNodeDialogPane.ComparatorMethod EQUAL

NOTEQUAL

public static final ColumnComparatorNodeDialogPane.ComparatorMethod NOTEQUAL

LESS

public static final ColumnComparatorNodeDialogPane.ComparatorMethod LESS

LESSEQUAL

public static final ColumnComparatorNodeDialogPane.ComparatorMethod LESSEQUAL

GREATER

public static final ColumnComparatorNodeDialogPane.ComparatorMethod GREATER

GREATEREQUAL

public static final ColumnComparatorNodeDialogPane.ComparatorMethod GREATEREQUAL
Method Detail

values

public static ColumnComparatorNodeDialogPane.ComparatorMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ColumnComparatorNodeDialogPane.ComparatorMethod c : ColumnComparatorNodeDialogPane.ComparatorMethod.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ColumnComparatorNodeDialogPane.ComparatorMethod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

compare

abstract boolean compare(DataCell cell1,
                         DataCell cell2)
Compares both cell values using the comparator method.

Parameters:
cell1 - left column value
cell2 - right column value
Returns:
true, if both cell are equal with respect to the comparator

compareValue

int compareValue(DataCell cell1,
                 DataCell cell2)
Compares both cell values using the most common's super type comparator.

Parameters:
cell1 - first cell value
cell2 - second cell value
Returns:
true, if both are equal

getMethod

public static final ColumnComparatorNodeDialogPane.ComparatorMethod getMethod(String str)
Returns the comparator method, specified within the Enum.toString().

Parameters:
str - comparator method's toString return value
Returns:
a comparator method


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.