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