simpledb
Enum Predicate.Op

java.lang.Object
  extended by java.lang.Enum<Predicate.Op>
      extended by simpledb.Predicate.Op
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Predicate.Op>
Enclosing class:
Predicate

public static enum Predicate.Op
extends java.lang.Enum<Predicate.Op>

Constants used for return codes in Field.compare


Enum Constant Summary
EQUALS
           
GREATER_THAN
           
GREATER_THAN_OR_EQ
           
LESS_THAN
           
LESS_THAN_OR_EQ
           
LIKE
           
NOT_EQUALS
           
 
Method Summary
static Predicate.Op getOp(int i)
          Interface to access operations by integer value for command-line convenience.
static Predicate.Op getOp(java.lang.String s)
          Interface to access operations by a string containing an integer index for command-line convenience.
static Predicate.Op valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Predicate.Op[] 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

EQUALS

public static final Predicate.Op EQUALS

GREATER_THAN

public static final Predicate.Op GREATER_THAN

LESS_THAN

public static final Predicate.Op LESS_THAN

LESS_THAN_OR_EQ

public static final Predicate.Op LESS_THAN_OR_EQ

GREATER_THAN_OR_EQ

public static final Predicate.Op GREATER_THAN_OR_EQ

LIKE

public static final Predicate.Op LIKE

NOT_EQUALS

public static final Predicate.Op NOT_EQUALS
Method Detail

values

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

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

valueOf

public static Predicate.Op 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
java.lang.NullPointerException - if the argument is null

getOp

public static Predicate.Op getOp(java.lang.String s)
Interface to access operations by a string containing an integer index for command-line convenience.

Parameters:
s - a string containing a valid integer Op index

getOp

public static Predicate.Op getOp(int i)
Interface to access operations by integer value for command-line convenience.

Parameters:
i - a valid integer Op index