public static enum HamletSpec.Shape extends Enum<HamletSpec.Shape>
Enum Constant and Description |
---|
circle
circle
|
Default
default
|
poly
polygon
|
rect
rectangle
|
Modifier and Type | Method and Description |
---|---|
static HamletSpec.Shape |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HamletSpec.Shape[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HamletSpec.Shape rect
public static final HamletSpec.Shape circle
public static final HamletSpec.Shape poly
public static final HamletSpec.Shape Default
public static HamletSpec.Shape[] values()
for (HamletSpec.Shape c : HamletSpec.Shape.values()) System.out.println(c);
public static HamletSpec.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 nullCopyright © 2008–2024 Apache Software Foundation. All rights reserved.