com.espertech.esper.type
Enum MinMaxTypeEnum

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

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

Enumeration for the type of arithmatic to use.


Nested Class Summary
static interface MinMaxTypeEnum.Computer
          Executes child expression nodes and compares results.
static class MinMaxTypeEnum.ComputerBigDecCoerce
          Determines minimum/maximum using BigDecimal.compareTo.
static class MinMaxTypeEnum.ComputerBigIntCoerce
          Determines minimum/maximum using BigInteger.compareTo.
static class MinMaxTypeEnum.MaxComputerDoubleCoerce
          Determines maximum using Number.doubleValue().
static class MinMaxTypeEnum.MinComputerDoubleCoerce
          Determines minimum using Number.doubleValue().
 
Enum Constant Summary
MAX
          Max.
MIN
          Min.
 
Method Summary
 java.lang.String getExpressionText()
          Returns textual representation of enum.
static MinMaxTypeEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MinMaxTypeEnum[] 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

MAX

public static final MinMaxTypeEnum MAX
Max.


MIN

public static final MinMaxTypeEnum MIN
Min.

Method Detail

values

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

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

valueOf

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

getExpressionText

public java.lang.String getExpressionText()
Returns textual representation of enum.

Returns:
text for enum

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