Enum Constant and Description |
---|
BOX |
CONE |
CONE_TO_MAX |
CYLINDER |
PYRAMID |
PYRAMID_TO_MAX |
Modifier and Type | Method and Description |
---|---|
static Shape |
valueOf(java.lang.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(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 nullCopyright 2020 The Apache Software Foundation or its licensors, as applicable.