| Enum Constant and Description |
|---|
Circle
Indicates a circle.
|
Rhombus
Indicates a rhombus.
|
Square
Indicates a square.
|
Triangle
Indicates a triangle.
|
| Modifier and Type | Method and Description |
|---|---|
static MarkShape |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MarkShape[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MarkShape Circle
public static final MarkShape Rhombus
public static final MarkShape Square
public static final MarkShape Triangle
public static MarkShape[] values()
for (MarkShape c : MarkShape.values()) System.out.println(c);
public static MarkShape 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