com.espertech.esper.type
Enum PrimitiveValueType

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

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

Enumeration of types of primitive values.


Enum Constant Summary
BOOL
          Boolean.
BYTE
          Byte.
DOUBLE
          Double.
FLOAT
          Float.
INTEGER
          Integer.
LONG
          Long.
SHORT
          Short.
STRING
          String.
 
Method Summary
 java.lang.String getTypeName()
          Returns the name of the type.
 java.lang.String toString()
           
static PrimitiveValueType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PrimitiveValueType[] 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

BYTE

public static final PrimitiveValueType BYTE
Byte.


SHORT

public static final PrimitiveValueType SHORT
Short.


INTEGER

public static final PrimitiveValueType INTEGER
Integer.


LONG

public static final PrimitiveValueType LONG
Long.


FLOAT

public static final PrimitiveValueType FLOAT
Float.


DOUBLE

public static final PrimitiveValueType DOUBLE
Double.


BOOL

public static final PrimitiveValueType BOOL
Boolean.


STRING

public static final PrimitiveValueType STRING
String.

Method Detail

values

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

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

valueOf

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

getTypeName

public java.lang.String getTypeName()
Returns the name of the type.

Returns:
type name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<PrimitiveValueType>

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