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