public enum DatePeriod extends java.lang.Enum<DatePeriod> implements JsonEnum
Enum Constant and Description |
---|
DAYS |
HOURS |
MILLISECONDS |
MINUTES |
MONTHS |
SECONDS |
WEEKS |
YEARS |
Modifier and Type | Method and Description |
---|---|
static DatePeriod |
fromId(java.lang.String id) |
java.lang.String |
getId() |
java.lang.String |
toString() |
static DatePeriod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DatePeriod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatePeriod MILLISECONDS
public static final DatePeriod SECONDS
public static final DatePeriod MINUTES
public static final DatePeriod HOURS
public static final DatePeriod DAYS
public static final DatePeriod MONTHS
public static final DatePeriod WEEKS
public static final DatePeriod YEARS
public static DatePeriod[] values()
for (DatePeriod c : DatePeriod.values()) System.out.println(c);
public static DatePeriod 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 java.lang.String getId()
@Nullable public static DatePeriod fromId(java.lang.String id)
public java.lang.String toString()
toString
in class java.lang.Enum<DatePeriod>