public enum PeriodUnitType extends Enum<PeriodUnitType>
Java class for PeriodUnitType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="PeriodUnitType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="Daily"/>
<enumeration value="Weekly"/>
<enumeration value="Monthly"/>
<enumeration value="Annual"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ANNUAL
The year is the unit of the period.
|
DAILY
The day is the unit of the period.
|
MONTHLY
The month is the unit of the period.
|
WEEKLY
The week is the unit of the period.
|
| Modifier and Type | Method and Description |
|---|---|
static PeriodUnitType |
fromValue(String v)
From value period unit type.
|
String |
value()
Value string.
|
static PeriodUnitType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PeriodUnitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeriodUnitType DAILY
public static final PeriodUnitType WEEKLY
public static final PeriodUnitType MONTHLY
public static final PeriodUnitType ANNUAL
public static PeriodUnitType[] values()
for (PeriodUnitType c : PeriodUnitType.values()) System.out.println(c);
public static PeriodUnitType 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 value()
public static PeriodUnitType fromValue(String v)
v - the vCopyright © 2022. All rights reserved.