public enum PrimitiveKind extends java.lang.Enum<PrimitiveKind>
Enum Constant | Description |
---|---|
circle |
circle
|
cone |
cone
|
cube |
cube
|
cylinder |
cylinder
|
rightTriangle |
rightTriangle
|
sphere |
sphere
|
square |
square
|
Modifier and Type | Method | Description |
---|---|---|
static PrimitiveKind |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static PrimitiveKind[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrimitiveKind sphere
public static final PrimitiveKind cube
public static final PrimitiveKind cylinder
public static final PrimitiveKind cone
public static final PrimitiveKind circle
public static final PrimitiveKind square
public static final PrimitiveKind rightTriangle
public static PrimitiveKind[] values()
for (PrimitiveKind c : PrimitiveKind.values()) System.out.println(c);
public static PrimitiveKind 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