public enum TravelClass extends Enum<TravelClass>
| Enum Constant and Description |
|---|
BUSINESS
The business.
|
ECONOMY
The economy.
|
FIRST_CLASS
The first class.
|
| Modifier and Type | Method and Description |
|---|---|
static TravelClass |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TravelClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TravelClass ECONOMY
public static final TravelClass BUSINESS
public static final TravelClass FIRST_CLASS
public static TravelClass[] values()
for (TravelClass c : TravelClass.values()) System.out.println(c);
public static TravelClass 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 © 2017 BotMill. All rights reserved.