public static enum FareItem.FareItemType extends Enum<FareItem.FareItemType>
FareItem
's typeEnum Constant and Description |
---|
BASE_FARE
The base fare
|
TAX
The tax
|
UNKOWN
unknown fare type
|
Modifier and Type | Method and Description |
---|---|
static FareItem.FareItemType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FareItem.FareItemType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FareItem.FareItemType UNKOWN
public static final FareItem.FareItemType BASE_FARE
public static final FareItem.FareItemType TAX
public static FareItem.FareItemType[] values()
for (FareItem.FareItemType c : FareItem.FareItemType.values()) System.out.println(c);
public static FareItem.FareItemType 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 null