public static enum TrainCar.eType extends java.lang.Enum<TrainCar.eType>
Enum Constant and Description |
---|
CABOOSE |
DINING |
ENGINE |
FREIGHT |
PASSENGER |
TANKER |
VIEWING |
Modifier and Type | Method and Description |
---|---|
static TrainCar.eType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TrainCar.eType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrainCar.eType ENGINE
public static final TrainCar.eType TANKER
public static final TrainCar.eType CABOOSE
public static final TrainCar.eType PASSENGER
public static final TrainCar.eType DINING
public static final TrainCar.eType VIEWING
public static final TrainCar.eType FREIGHT
public static TrainCar.eType[] values()
for (TrainCar.eType c : TrainCar.eType.values()) System.out.println(c);
public static TrainCar.eType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null