Enum HighContrastColor
- java.lang.Object
-
- java.lang.Enum<HighContrastColor>
-
- org.optaweb.employeerostering.domain.common.HighContrastColor
-
- All Implemented Interfaces:
Serializable,Comparable<HighContrastColor>
public enum HighContrastColor extends Enum<HighContrastColor>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLUECYANDARK_BLUEDARK_CYANDARK_GREENDARK_ORANGEDARK_PURPLEDARK_REDDARK_YELLOWGREENLIGHT_BLUELIGHT_CYANLIGHT_GREENLIGHT_ORANGELIGHT_PURPLELIGHT_REDLIGHT_YELLOWORANGEPURPLEREDYELLOW
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgenerateColorFromHashcode(Object obj)Generates a color for the given Object.static HighContrastColorvalueOf(String name)Returns the enum constant of this type with the specified name.static HighContrastColor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DARK_RED
public static final HighContrastColor DARK_RED
-
RED
public static final HighContrastColor RED
-
LIGHT_RED
public static final HighContrastColor LIGHT_RED
-
DARK_BLUE
public static final HighContrastColor DARK_BLUE
-
BLUE
public static final HighContrastColor BLUE
-
LIGHT_BLUE
public static final HighContrastColor LIGHT_BLUE
-
DARK_YELLOW
public static final HighContrastColor DARK_YELLOW
-
YELLOW
public static final HighContrastColor YELLOW
-
LIGHT_YELLOW
public static final HighContrastColor LIGHT_YELLOW
-
DARK_ORANGE
public static final HighContrastColor DARK_ORANGE
-
ORANGE
public static final HighContrastColor ORANGE
-
LIGHT_ORANGE
public static final HighContrastColor LIGHT_ORANGE
-
DARK_GREEN
public static final HighContrastColor DARK_GREEN
-
GREEN
public static final HighContrastColor GREEN
-
LIGHT_GREEN
public static final HighContrastColor LIGHT_GREEN
-
DARK_PURPLE
public static final HighContrastColor DARK_PURPLE
-
PURPLE
public static final HighContrastColor PURPLE
-
LIGHT_PURPLE
public static final HighContrastColor LIGHT_PURPLE
-
DARK_CYAN
public static final HighContrastColor DARK_CYAN
-
CYAN
public static final HighContrastColor CYAN
-
LIGHT_CYAN
public static final HighContrastColor LIGHT_CYAN
-
-
Method Detail
-
values
public static HighContrastColor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HighContrastColor c : HighContrastColor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HighContrastColor valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-