net.sf.jdmf.data.operators
Enum EqualityOperator

java.lang.Object
  extended by java.lang.Enum<EqualityOperator>
      extended by net.sf.jdmf.data.operators.EqualityOperator
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EqualityOperator>

public enum EqualityOperator
extends java.lang.Enum<EqualityOperator>

Represents the equality operator inside rules.

Author:
quorthon

Enum Constant Summary
EQUAL
           
GREATER_THAN
           
GREATER_THAN_OR_EQUAL
           
LOWER_THAN
           
LOWER_THAN_OR_EQUAL
           
NOT_EQUAL
           
 
Method Summary
abstract  boolean evaluate(java.lang.Comparable leftArgument, java.lang.Comparable rightArgument)
           
static EqualityOperator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EqualityOperator[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, 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 EqualityOperator EQUAL

NOT_EQUAL

public static final EqualityOperator NOT_EQUAL

GREATER_THAN

public static final EqualityOperator GREATER_THAN

GREATER_THAN_OR_EQUAL

public static final EqualityOperator GREATER_THAN_OR_EQUAL

LOWER_THAN

public static final EqualityOperator LOWER_THAN

LOWER_THAN_OR_EQUAL

public static final EqualityOperator LOWER_THAN_OR_EQUAL
Method Detail

values

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

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

valueOf

public static EqualityOperator valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

evaluate

public abstract boolean evaluate(java.lang.Comparable leftArgument,
                                 java.lang.Comparable rightArgument)