public enum PriceUnit extends Enum<PriceUnit>
Java class for PriceUnit.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="PriceUnit">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="Unknown"/>
<enumeration value="PerHour"/>
<enumeration value="PerDay"/>
<enumeration value="PerWeek"/>
<enumeration value="PerMonth"/>
<enumeration value="PerYear"/>
<enumeration value="None"/>
<enumeration value="PerNight"/>
</restriction>
</simpleType>
Enum Constant and Description |
---|
NONE |
PER_DAY |
PER_HOUR |
PER_MONTH |
PER_NIGHT |
PER_WEEK |
PER_YEAR |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static PriceUnit |
fromValue(String v) |
String |
value() |
static PriceUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PriceUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PriceUnit UNKNOWN
public static final PriceUnit PER_HOUR
public static final PriceUnit PER_DAY
public static final PriceUnit PER_WEEK
public static final PriceUnit PER_MONTH
public static final PriceUnit PER_YEAR
public static final PriceUnit NONE
public static final PriceUnit PER_NIGHT
public static PriceUnit[] values()
for (PriceUnit c : PriceUnit.values()) System.out.println(c);
public static PriceUnit 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()
Copyright © 2024. All rights reserved.