public enum StaticColor extends Enum<StaticColor>
| Enum Constant and Description |
|---|
black |
blue |
brown |
gray |
green |
orange |
purple |
red |
white |
yellow |
| Modifier and Type | Method and Description |
|---|---|
static StaticColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StaticColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StaticColor black
public static final StaticColor brown
public static final StaticColor green
public static final StaticColor purple
public static final StaticColor yellow
public static final StaticColor blue
public static final StaticColor gray
public static final StaticColor orange
public static final StaticColor red
public static final StaticColor white
public static StaticColor[] values()
for (StaticColor c : StaticColor.values()) System.out.println(c);
public static StaticColor 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 nullCopyright © 2018. All rights reserved.