java.io.Serializable, java.lang.Comparable<HamletSpec.Shape>public static enum HamletSpec.Shape extends java.lang.Enum<HamletSpec.Shape>
| Enum Constant | Description |
|---|---|
circle |
circle
|
Default |
default
|
poly |
polygon
|
rect |
rectangle
|
| Modifier and Type | Method | Description |
|---|---|---|
static HamletSpec.Shape |
valueOf(java.lang.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(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 © 2008–2025 Apache Software Foundation. All rights reserved.