Enum TimeFunctions.Type
- java.lang.Object
-
- java.lang.Enum<TimeFunctions.Type>
-
- com.yahoo.search.grouping.request.TimeFunctions.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TimeFunctions.Type>
- Enclosing class:
- TimeFunctions
public static enum TimeFunctions.Type extends java.lang.Enum<TimeFunctions.Type>
Defines the different types of timestamps-functions that are available.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATE
DAY_OF_MONTH
DAY_OF_WEEK
DAY_OF_YEAR
HOUR_OF_DAY
MINUTE_OF_HOUR
MONTH_OF_YEAR
SECOND_OF_MINUTE
YEAR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeFunctions.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TimeFunctions.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DATE
public static final TimeFunctions.Type DATE
-
DAY_OF_MONTH
public static final TimeFunctions.Type DAY_OF_MONTH
-
DAY_OF_WEEK
public static final TimeFunctions.Type DAY_OF_WEEK
-
DAY_OF_YEAR
public static final TimeFunctions.Type DAY_OF_YEAR
-
HOUR_OF_DAY
public static final TimeFunctions.Type HOUR_OF_DAY
-
MINUTE_OF_HOUR
public static final TimeFunctions.Type MINUTE_OF_HOUR
-
MONTH_OF_YEAR
public static final TimeFunctions.Type MONTH_OF_YEAR
-
SECOND_OF_MINUTE
public static final TimeFunctions.Type SECOND_OF_MINUTE
-
YEAR
public static final TimeFunctions.Type YEAR
-
-
Method Detail
-
values
public static TimeFunctions.Type[] 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 (TimeFunctions.Type c : TimeFunctions.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeFunctions.Type 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 namejava.lang.NullPointerException
- if the argument is null
-
-