public static enum Fare.FareType extends Enum<Fare.FareType> implements Serializable
Enum Constant and Description |
---|
regular |
senior |
special |
student |
tram |
youth |
Modifier and Type | Method and Description |
---|---|
static Fare.FareType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fare.FareType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Fare.FareType regular
public static final Fare.FareType student
public static final Fare.FareType senior
public static final Fare.FareType tram
public static final Fare.FareType special
public static final Fare.FareType youth
public static Fare.FareType[] values()
for (Fare.FareType c : Fare.FareType.values()) System.out.println(c);
public static Fare.FareType 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 nullCopyright © 2018. All rights reserved.