com.amazon.carbonado.filter
Enum RelOp

java.lang.Object
  extended by java.lang.Enum<RelOp>
      extended by com.amazon.carbonado.filter.RelOp
All Implemented Interfaces:
Serializable, Comparable<RelOp>

public enum RelOp
extends Enum<RelOp>

Relational operator enumeration.

Author:
Brian S O'Neill

Enum Constant Summary
EQ
          Equals
GE
          Greator than or Equal
GT
          Greator Than
LE
          Less than or Equal
LT
          Less Than
NE
          Not Equals
 
Method Summary
 RelOp reverse()
           
 String toString()
          Returns one of "=", "!=", "<", ">=", ">", or "<=".
static RelOp valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RelOp[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EQ

public static final RelOp EQ
Equals


NE

public static final RelOp NE
Not Equals


LT

public static final RelOp LT
Less Than


GE

public static final RelOp GE
Greator than or Equal


GT

public static final RelOp GT
Greator Than


LE

public static final RelOp LE
Less than or Equal

Method Detail

values

public static RelOp[] 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 (RelOp c : RelOp.values())
    System.out.println(c);

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

valueOf

public static RelOp 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

toString

public String toString()
Returns one of "=", "!=", "<", ">=", ">", or "<=".

Overrides:
toString in class Enum<RelOp>

reverse

public RelOp reverse()


Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.