com.espertech.esper.epl.datetime.calop
Enum CalendarFieldEnum

java.lang.Object
  extended by java.lang.Enum<CalendarFieldEnum>
      extended by com.espertech.esper.epl.datetime.calop.CalendarFieldEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CalendarFieldEnum>

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


Enum Constant Summary
DAY
           
HOUR
           
MILLISEC
           
MINUTE
           
MONTH
           
SECOND
           
WEEK
           
YEAR
           
 
Method Summary
static CalendarFieldEnum fromString(java.lang.String field)
           
 int getCalendarField()
           
 java.lang.String[] getNames()
           
static java.lang.String getValidList()
           
static CalendarFieldEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CalendarFieldEnum[] 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

MILLISEC

public static final CalendarFieldEnum MILLISEC

SECOND

public static final CalendarFieldEnum SECOND

MINUTE

public static final CalendarFieldEnum MINUTE

HOUR

public static final CalendarFieldEnum HOUR

DAY

public static final CalendarFieldEnum DAY

MONTH

public static final CalendarFieldEnum MONTH

WEEK

public static final CalendarFieldEnum WEEK

YEAR

public static final CalendarFieldEnum YEAR
Method Detail

values

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

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

valueOf

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

getValidList

public static java.lang.String getValidList()

getCalendarField

public int getCalendarField()

getNames

public java.lang.String[] getNames()

fromString

public static CalendarFieldEnum fromString(java.lang.String field)

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