com.espertech.esper.type
Enum RelationalOpEnum

java.lang.Object
  extended by java.lang.Enum<RelationalOpEnum>
      extended by com.espertech.esper.type.RelationalOpEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RelationalOpEnum>

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

Enum representing relational types of operation.


Nested Class Summary
static interface RelationalOpEnum.Computer
          Computer for relational op.
static class RelationalOpEnum.GEBigDecComputer
          Computer for relational op compare.
static class RelationalOpEnum.GEBigDecConvComputer
          Computer for relational op compare.
static class RelationalOpEnum.GEBigIntComputer
          Computer for relational op compare.
static class RelationalOpEnum.GEBigIntConvComputer
          Computer for relational op compare.
static class RelationalOpEnum.GEDoubleComputer
          Computer for relational op compare.
static class RelationalOpEnum.GEFloatComputer
          Computer for relational op compare.
static class RelationalOpEnum.GEIntegerComputer
          Computer for relational op compare.
static class RelationalOpEnum.GELongComputer
          Computer for relational op compare.
static class RelationalOpEnum.GEStringComputer
          Computer for relational op compare.
static class RelationalOpEnum.GTBigDecComputer
          Computer for relational op compare.
static class RelationalOpEnum.GTBigDecConvComputer
          Computer for relational op compare.
static class RelationalOpEnum.GTBigIntComputer
          Computer for relational op compare.
static class RelationalOpEnum.GTBigIntConvComputer
          Computer for relational op compare.
static class RelationalOpEnum.GTDoubleComputer
          Computer for relational op compare.
static class RelationalOpEnum.GTFloatComputer
          Computer for relational op compare.
static class RelationalOpEnum.GTIntegerComputer
          Computer for relational op compare.
static class RelationalOpEnum.GTLongComputer
          Computer for relational op compare.
static class RelationalOpEnum.GTStringComputer
          Computer for relational op compare.
static class RelationalOpEnum.LEBigDecComputer
          Computer for relational op compare.
static class RelationalOpEnum.LEBigDecConvComputer
          Computer for relational op compare.
static class RelationalOpEnum.LEBigIntComputer
          Computer for relational op compare.
static class RelationalOpEnum.LEBigIntConvComputer
          Computer for relational op compare.
static class RelationalOpEnum.LEDoubleComputer
          Computer for relational op compare.
static class RelationalOpEnum.LEFloatComputer
          Computer for relational op compare.
static class RelationalOpEnum.LEIntegerComputer
          Computer for relational op compare.
static class RelationalOpEnum.LELongComputer
          Computer for relational op compare.
static class RelationalOpEnum.LEStringComputer
          Computer for relational op compare.
static class RelationalOpEnum.LTBigDecComputer
          Computer for relational op compare.
static class RelationalOpEnum.LTBigDecConvComputer
          Computer for relational op compare.
static class RelationalOpEnum.LTBigIntComputer
          Computer for relational op compare.
static class RelationalOpEnum.LTBigIntConvComputer
          Computer for relational op compare.
static class RelationalOpEnum.LTDoubleComputer
          Computer for relational op compare.
static class RelationalOpEnum.LTFloatComputer
          Computer for relational op compare.
static class RelationalOpEnum.LTIntegerComputer
          Computer for relational op compare.
static class RelationalOpEnum.LTLongComputer
          Computer for relational op compare.
static class RelationalOpEnum.LTStringComputer
          Computer for relational op compare.
 
Enum Constant Summary
GE
          Greater equals.
GT
          Greater then.
LE
          Lesser equals.
LT
          Lesser then.
 
Method Summary
 RelationalOpEnum.Computer getComputer(java.lang.Class coercedType, java.lang.Class typeOne, java.lang.Class typeTwo)
          Returns the computer to use for the relational operation based on the coercion type.
 java.lang.String getExpressionText()
          Returns string rendering of enum.
static RelationalOpEnum parse(java.lang.String op)
          Parses the operator and returns an enum for the operator.
 RelationalOpEnum reversed()
           
static RelationalOpEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RelationalOpEnum[] 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

GT

public static final RelationalOpEnum GT
Greater then.


GE

public static final RelationalOpEnum GE
Greater equals.


LT

public static final RelationalOpEnum LT
Lesser then.


LE

public static final RelationalOpEnum LE
Lesser equals.

Method Detail

values

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

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

valueOf

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

reversed

public RelationalOpEnum reversed()

parse

public static RelationalOpEnum parse(java.lang.String op)
Parses the operator and returns an enum for the operator.

Parameters:
op - to parse
Returns:
enum representing relational operation

getComputer

public RelationalOpEnum.Computer getComputer(java.lang.Class coercedType,
                                             java.lang.Class typeOne,
                                             java.lang.Class typeTwo)
Returns the computer to use for the relational operation based on the coercion type.

Parameters:
coercedType - is the object type
typeOne - the compare-to type on the LHS
typeTwo - the compare-to type on the RHS
Returns:
computer for performing the relational op

getExpressionText

public java.lang.String getExpressionText()
Returns string rendering of enum.

Returns:
relational op string

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com