public enum NamedColor extends Enum<NamedColor> implements HexColor
| Enum Constant and Description |
|---|
BLUE |
BRIGHTGREEN |
GREEN |
GREY |
LIGHTGREY |
ORANGE |
RED |
YELLOW |
YELLOWGREEN |
| Modifier and Type | Method and Description |
|---|---|
String |
getHexColor() |
static NamedColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NamedColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NamedColor BRIGHTGREEN
public static final NamedColor GREEN
public static final NamedColor YELLOW
public static final NamedColor YELLOWGREEN
public static final NamedColor ORANGE
public static final NamedColor RED
public static final NamedColor BLUE
public static final NamedColor GREY
public static final NamedColor LIGHTGREY
public static NamedColor[] values()
for (NamedColor c : NamedColor.values()) System.out.println(c);
public static NamedColor 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 nullpublic String getHexColor()
getHexColor in interface HexColorCopyright © 2023. All rights reserved.