Package rocks.xmpp.extensions.colors
Enum ConsistentColor.ColorVisionDeficiency
- java.lang.Object
-
- java.lang.Enum<ConsistentColor.ColorVisionDeficiency>
-
- rocks.xmpp.extensions.colors.ConsistentColor.ColorVisionDeficiency
-
- All Implemented Interfaces:
Serializable
,Comparable<ConsistentColor.ColorVisionDeficiency>
- Enclosing class:
- ConsistentColor
public static enum ConsistentColor.ColorVisionDeficiency extends Enum<ConsistentColor.ColorVisionDeficiency>
Represents a color vision deficiency, used to re-map the angle to map it away from ranges which can not be distinguished by people with the respective color vision deficiencies.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLUE_BLINDNESS
Blue blindness.NONE
No color vision deficiency.RED_GREEN_BLINDNESS
Red-green blindness.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConsistentColor.ColorVisionDeficiency
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConsistentColor.ColorVisionDeficiency[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ConsistentColor.ColorVisionDeficiency NONE
No color vision deficiency. This is the default.
-
RED_GREEN_BLINDNESS
public static final ConsistentColor.ColorVisionDeficiency RED_GREEN_BLINDNESS
Red-green blindness.
-
BLUE_BLINDNESS
public static final ConsistentColor.ColorVisionDeficiency BLUE_BLINDNESS
Blue blindness.
-
-
Method Detail
-
values
public static ConsistentColor.ColorVisionDeficiency[] 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 (ConsistentColor.ColorVisionDeficiency c : ConsistentColor.ColorVisionDeficiency.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConsistentColor.ColorVisionDeficiency 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
-
-