java.io.Serializable
, java.lang.Comparable<Llama.Color>
public static enum Llama.Color extends java.lang.Enum<Llama.Color>
Enum Constant | Description |
---|---|
BROWN |
A brown llama.
|
CREAMY |
A cream-colored llama.
|
GRAY |
A gray llama.
|
WHITE |
A white llama.
|
Modifier and Type | Method | Description |
---|---|---|
static Llama.Color |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Llama.Color[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Llama.Color CREAMY
public static final Llama.Color WHITE
public static final Llama.Color BROWN
public static final Llama.Color GRAY
public static Llama.Color[] values()
for (Llama.Color c : Llama.Color.values()) System.out.println(c);
public static Llama.Color 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 © 2018. All rights reserved.