Enum ExpiresFilter.DurationUnit
- All Implemented Interfaces:
Serializable, Comparable<ExpiresFilter.DurationUnit>, java.lang.constant.Constable
- Enclosing class:
ExpiresFilter
Duration unit
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintReturns the calendar field corresponding to this duration unit.static ExpiresFilter.DurationUnitReturns the enum constant of this type with the specified name.static ExpiresFilter.DurationUnit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DAY
Day duration unit. -
HOUR
Hour duration unit. -
MINUTE
Minute duration unit. -
MONTH
Month duration unit. -
SECOND
Second duration unit. -
WEEK
Week duration unit. -
YEAR
Year duration unit.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getCalendardField
public int getCalendardField()Returns the calendar field corresponding to this duration unit.- Returns:
- the calendar field value
-