public static enum Costants.Colors extends Enum<Costants.Colors>
Enum Constant and Description |
---|
aqua |
black |
blue |
fuchsia |
gray |
green |
lime |
maroon |
navy |
olive |
purple |
red |
silver |
teal |
white |
yellow |
Modifier and Type | Method and Description |
---|---|
static Costants.Colors |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Costants.Colors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Costants.Colors red
public static final Costants.Colors blue
public static final Costants.Colors green
public static final Costants.Colors silver
public static final Costants.Colors aqua
public static final Costants.Colors black
public static final Costants.Colors fuchsia
public static final Costants.Colors gray
public static final Costants.Colors lime
public static final Costants.Colors maroon
public static final Costants.Colors navy
public static final Costants.Colors olive
public static final Costants.Colors purple
public static final Costants.Colors teal
public static final Costants.Colors white
public static final Costants.Colors yellow
public static Costants.Colors[] values()
for (Costants.Colors c : Costants.Colors.values()) System.out.println(c);
public static Costants.Colors 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 © 2014. All Rights Reserved.