public enum ColorType extends Enum<ColorType>
| Enum Constant and Description |
|---|
BLUE |
GREEN |
GREY |
LAVAND |
LIGHTBLUE |
LIGHTGREEN |
MANDARIN |
ORANGE |
PINK |
PURPLE |
RED |
YELLOW |
| Modifier and Type | Method and Description |
|---|---|
String |
getColorCode() |
String |
getColorName() |
static ColorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ColorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorType RED
public static final ColorType MANDARIN
public static final ColorType LIGHTGREEN
public static final ColorType LIGHTBLUE
public static final ColorType LAVAND
public static final ColorType GREY
public static final ColorType PINK
public static final ColorType YELLOW
public static final ColorType GREEN
public static final ColorType BLUE
public static final ColorType PURPLE
public static final ColorType ORANGE
public static ColorType[] values()
for (ColorType c : ColorType.values()) System.out.println(c);
public static ColorType 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 nullpublic String getColorName()
public String getColorCode()
Copyright © 2020 OSIVIA. All rights reserved.