public static enum Llama.Color extends Enum<Llama.Color>
Enum Constant and Description |
---|
BROWN
A brown llama.
|
CREAMY
A cream-colored llama.
|
GRAY
A gray llama.
|
WHITE
A white llama.
|
Modifier and Type | Method and Description |
---|---|
static Llama.Color |
valueOf(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(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 © 2022. All rights reserved.