Enum Constant and Description |
---|
BLUEBERRY_PIE |
CANDY_FLOSS |
ICY_MARSHMALLOW |
LEMON_TART |
LIQUORICE_SWIRL |
MINT_COCKTAIL |
SWEET_BEETROOT |
TRANSPARENT |
UNKNOWN |
VANILLA_JELLO |
WHITE |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
text |
Modifier and Type | Method and Description |
---|---|
static Color |
fromString(java.lang.String colorString) |
java.lang.String |
toString() |
static Color |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Color[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Color UNKNOWN
public static final Color MINT_COCKTAIL
public static final Color ICY_MARSHMALLOW
public static final Color BLUEBERRY_PIE
public static final Color SWEET_BEETROOT
public static final Color CANDY_FLOSS
public static final Color LEMON_TART
public static final Color VANILLA_JELLO
public static final Color LIQUORICE_SWIRL
public static final Color WHITE
public static final Color TRANSPARENT
public static Color[] values()
for (Color c : Color.values()) System.out.println(c);
public static 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 nullpublic static Color fromString(java.lang.String colorString)
public java.lang.String toString()
toString
in class java.lang.Enum<Color>