public static enum ShapeLibrary.Shape extends java.lang.Enum<ShapeLibrary.Shape>
Enum Constant and Description |
---|
BANANA |
BOOMERANG |
BRAINWHITE |
CIRCLE |
CORPUSCALLOSUM |
CROSS |
FEMUR |
MOUSEORGAN |
NONE |
SEMICIRCLE |
SNOWMAN |
SQUARE |
UPPERLIP |
Modifier and Type | Method and Description |
---|---|
static ShapeLibrary.Shape |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ShapeLibrary.Shape[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShapeLibrary.Shape NONE
public static final ShapeLibrary.Shape BANANA
public static final ShapeLibrary.Shape CIRCLE
public static final ShapeLibrary.Shape MOUSEORGAN
public static final ShapeLibrary.Shape CROSS
public static final ShapeLibrary.Shape SQUARE
public static final ShapeLibrary.Shape SEMICIRCLE
public static final ShapeLibrary.Shape BOOMERANG
public static final ShapeLibrary.Shape FEMUR
public static final ShapeLibrary.Shape BRAINWHITE
public static final ShapeLibrary.Shape UPPERLIP
public static final ShapeLibrary.Shape CORPUSCALLOSUM
public static final ShapeLibrary.Shape SNOWMAN
public static ShapeLibrary.Shape[] values()
for (ShapeLibrary.Shape c : ShapeLibrary.Shape.values()) System.out.println(c);
public static ShapeLibrary.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 null