Enum Class ColorName
- All Implemented Interfaces:
Serializable
,Comparable<ColorName>
,Constable
An enumeration of some color names.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAquamarine.Azure.Black.Blue.Brown.Charcoal.Coral (no, not Rick's son)Crimson.Cyan.Fuchsia.Gray.Green.Hot Pink.Ivory.Khaki.Lime.Magenta.Maroon.Navy blue.Olden.Olive.Orange.Pea Green.Plum.Purple.Red.Silver.Teal.Wheat.White.Yellow. -
Method Summary
-
Enum Constant Details
-
WHITE
White. -
YELLOW
Yellow. -
BLUE
Blue. -
RED
Red. -
GREEN
Green. -
BLACK
Black. -
BROWN
Brown. -
AZURE
Azure. -
IVORY
Ivory. -
TEAL
Teal. -
SILVER
Silver. -
PURPLE
Purple. -
NAVY_BLUE
Navy blue. -
PEA_GREEN
Pea Green. -
GRAY
Gray. -
ORANGE
Orange. -
MAROON
Maroon. -
CHARCOAL
Charcoal. -
AQUAMARINE
Aquamarine. -
CORAL
Coral (no, not Rick's son) -
FUCHSIA
Fuchsia. -
WHEAT
Wheat. -
LIME
Lime. -
CRIMSON
Crimson. -
KHAKI
Khaki. -
HOT_PINK
Hot Pink. -
MAGENTA
Magenta. -
OLDEN
Olden. -
PLUM
Plum. -
OLIVE
Olive. -
CYAN
Cyan.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
-