public enum PeriodType extends Enum<PeriodType>
| Modifier and Type | Method and Description |
|---|---|
static PeriodType |
fromName(String name) |
String |
getName() |
static PeriodType |
valueOf(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 DAY
public static final PeriodType MONTH
public static final PeriodType QUARTER
public static final PeriodType YEAR
public static PeriodType[] values()
for (PeriodType c : PeriodType.values()) System.out.println(c);
public static PeriodType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String getName()
public static PeriodType fromName(String name)
Copyright © 2014. All Rights Reserved.