public static enum Auto2.Type extends Enum<Auto2.Type>
Modifier and Type | Method and Description |
---|---|
static Auto2.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Auto2.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Auto2.Type CAR
public static final Auto2.Type TRUCK
public static Auto2.Type[] values()
for (Auto2.Type c : Auto2.Type.values()) System.out.println(c);
public static Auto2.Type 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.