com.espertech.esper.epl.datetime.calop
Enum CalendarFieldEnum
java.lang.Object
java.lang.Enum<CalendarFieldEnum>
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>
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 |
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
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)