public enum TirePosition extends Enum<TirePosition>
Enum Constant and Description |
---|
LEFT_FRONT |
LEFT_REAR |
RIGHT_FRONT |
RIGHT_REAR |
Modifier and Type | Method and Description |
---|---|
static TirePosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TirePosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TirePosition LEFT_FRONT
public static final TirePosition RIGHT_FRONT
public static final TirePosition LEFT_REAR
public static final TirePosition RIGHT_REAR
public static TirePosition[] values()
for (TirePosition c : TirePosition.values()) System.out.println(c);
public static TirePosition 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 © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.