public static enum DateOffset.Unit extends java.lang.Enum<DateOffset.Unit>
Enum Constant and Description |
---|
DAYS |
HOURS |
MINUTES |
MONTHS |
SECONDS |
YEARS |
Modifier and Type | Method and Description |
---|---|
int |
getCalendarField() |
static DateOffset.Unit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DateOffset.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateOffset.Unit SECONDS
public static final DateOffset.Unit MINUTES
public static final DateOffset.Unit HOURS
public static final DateOffset.Unit DAYS
public static final DateOffset.Unit MONTHS
public static final DateOffset.Unit YEARS
public static DateOffset.Unit[] values()
for (DateOffset.Unit c : DateOffset.Unit.values()) System.out.println(c);
public static DateOffset.Unit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getCalendarField()