private static enum MemoryOption.State extends Enum<MemoryOption.State>
Modifier and Type | Field and Description |
---|---|
private Color |
background |
private Color |
foreground |
Modifier and Type | Method and Description |
---|---|
Color |
getBackground() |
Color |
getForeground() |
static MemoryOption.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemoryOption.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemoryOption.State VALID
public static final MemoryOption.State WARN
public static final MemoryOption.State ERROR
private final Color foreground
private final Color background
public static MemoryOption.State[] values()
for (MemoryOption.State c : MemoryOption.State.values()) System.out.println(c);
public static MemoryOption.State 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 getForeground()
public Color getBackground()