public enum Colors extends Enum<Colors>
| Enum Constant and Description |
|---|
BLACK |
BLUE |
CYAN |
DARK_GRAY |
GRAY |
GREEN |
LIGHT_GRAY |
MAGENTA |
ORANGE |
PINK |
RED |
UNSPECIFIED |
WHITE |
YELLOW |
| Modifier and Type | Method and Description |
|---|---|
Color |
get()
Gets related color object.
|
static Colors |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Colors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Colors UNSPECIFIED
public static final Colors BLACK
public static final Colors WHITE
public static final Colors LIGHT_GRAY
public static final Colors GRAY
public static final Colors DARK_GRAY
public static final Colors RED
public static final Colors PINK
public static final Colors ORANGE
public static final Colors YELLOW
public static final Colors GREEN
public static final Colors MAGENTA
public static final Colors CYAN
public static final Colors BLUE
public static Colors[] values()
for (Colors c : Colors.values()) System.out.println(c);
public static Colors 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 Color get()
Copyright © 2022. All rights reserved.