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