Serializable
, Comparable<Parrot.Variant>
public static enum Parrot.Variant extends Enum<Parrot.Variant>
Enum Constant | Description |
---|---|
BLUE |
Royal blue colored parrot.
|
CYAN |
Cyan colored parrot.
|
GRAY |
Gray colored parrot.
|
GREEN |
Green colored parrot.
|
RED |
Classic parrot - red with colored wingtips.
|
Modifier and Type | Method | Description |
---|---|---|
static Parrot.Variant |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Parrot.Variant[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Parrot.Variant RED
public static final Parrot.Variant BLUE
public static final Parrot.Variant GREEN
public static final Parrot.Variant CYAN
public static final Parrot.Variant GRAY
public static Parrot.Variant[] values()
for (Parrot.Variant c : Parrot.Variant.values()) System.out.println(c);
public static Parrot.Variant 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 © 2019. All rights reserved.