public enum PrimitiveKind extends Enum<PrimitiveKind>
| Enum Constant and Description |
|---|
circle
circle
|
cone
cone
|
cube
cube
|
cylinder
cylinder
|
rightTriangle
rightTriangle
|
sphere
sphere
|
square
square
|
| Modifier and Type | Method and Description |
|---|---|
static PrimitiveKind |
valueOf(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(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 © 2009–2016. All rights reserved.