Enum DateFunctions.DatePart
- java.lang.Object
-
- java.lang.Enum<DateFunctions.DatePart>
-
- com.couchbase.client.java.query.dsl.functions.DateFunctions.DatePart
-
- All Implemented Interfaces:
Serializable
,Comparable<DateFunctions.DatePart>
- Enclosing class:
- DateFunctions
public static enum DateFunctions.DatePart extends Enum<DateFunctions.DatePart>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateFunctions.DatePart
valueOf(String name)
Returns the enum constant of this type with the specified name.static DateFunctions.DatePart[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
millenium
public static final DateFunctions.DatePart millenium
-
century
public static final DateFunctions.DatePart century
-
decade
public static final DateFunctions.DatePart decade
-
year
public static final DateFunctions.DatePart year
-
quarter
public static final DateFunctions.DatePart quarter
-
month
public static final DateFunctions.DatePart month
-
week
public static final DateFunctions.DatePart week
-
day
public static final DateFunctions.DatePart day
-
hour
public static final DateFunctions.DatePart hour
-
minute
public static final DateFunctions.DatePart minute
-
second
public static final DateFunctions.DatePart second
-
millisecond
public static final DateFunctions.DatePart millisecond
-
-
Method Detail
-
values
public static DateFunctions.DatePart[] 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 (DateFunctions.DatePart c : DateFunctions.DatePart.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateFunctions.DatePart valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-