Enum DateField.DateStartUnit
- java.lang.Object
-
- java.lang.Enum<DateField.DateStartUnit>
-
- com.broadleafcommerce.metadata.dsl.core.extension.fields.DateField.DateStartUnit
-
- All Implemented Interfaces:
Serializable
,Comparable<DateField.DateStartUnit>
public static enum DateField.DateStartUnit extends Enum<DateField.DateStartUnit>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateField.DateStartUnit
valueOf(String name)
Returns the enum constant of this type with the specified name.static DateField.DateStartUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YEAR
public static final DateField.DateStartUnit YEAR
-
MONTH
public static final DateField.DateStartUnit MONTH
-
QUARTER
public static final DateField.DateStartUnit QUARTER
-
WEEK
public static final DateField.DateStartUnit WEEK
-
ISOWEEK
public static final DateField.DateStartUnit ISOWEEK
The ISO standard for the beginning of a week, non locale-specific. See https://en.wikipedia.org/wiki/ISO_week_date for more information
-
DAY
public static final DateField.DateStartUnit DAY
-
DATE
public static final DateField.DateStartUnit DATE
-
HOUR
public static final DateField.DateStartUnit HOUR
-
MINUTE
public static final DateField.DateStartUnit MINUTE
-
SECOND
public static final DateField.DateStartUnit SECOND
-
-
Method Detail
-
values
public static DateField.DateStartUnit[] 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 (DateField.DateStartUnit c : DateField.DateStartUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateField.DateStartUnit 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
-
-