Serializable
, Comparable<BarColor>
public enum BarColor extends Enum<BarColor>
Enum Constant | Description |
---|---|
BLUE |
|
GREEN |
|
PINK |
|
PURPLE |
|
RED |
|
WHITE |
|
YELLOW |
Modifier and Type | Method | Description |
---|---|---|
static BarColor |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static BarColor[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BarColor PINK
public static final BarColor BLUE
public static final BarColor RED
public static final BarColor GREEN
public static final BarColor YELLOW
public static final BarColor PURPLE
public static final BarColor WHITE
public static BarColor[] values()
for (BarColor c : BarColor.values()) System.out.println(c);
public static BarColor 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 © 2019. All rights reserved.