public enum PlateColor extends Enum<PlateColor>
| Enum Constant and Description |
|---|
BLACK
黑色
|
BLUE
蓝色
|
GREEN
绿色
|
LIMEGREEN
黄绿色
|
WHITE
白色
|
YELLOW
黄色
|
| Modifier and Type | Method and Description |
|---|---|
static PlateColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlateColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlateColor BLUE
public static final PlateColor GREEN
public static final PlateColor YELLOW
public static final PlateColor BLACK
public static final PlateColor WHITE
public static final PlateColor LIMEGREEN
public static PlateColor[] values()
for (PlateColor c : PlateColor.values()) System.out.println(c);
public static PlateColor 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 © 2023. All rights reserved.