Package io.prestosql.operator.scalar
Enum ColorFunctions.SystemColor
- java.lang.Object
-
- java.lang.Enum<ColorFunctions.SystemColor>
-
- io.prestosql.operator.scalar.ColorFunctions.SystemColor
-
- All Implemented Interfaces:
Serializable
,Comparable<ColorFunctions.SystemColor>
- Enclosing class:
- ColorFunctions
public static enum ColorFunctions.SystemColor extends Enum<ColorFunctions.SystemColor>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
static ColorFunctions.SystemColor
valueOf(int index)
Returns the enum constant of this type with the specified name.static ColorFunctions.SystemColor
valueOf(String name)
Returns the enum constant of this type with the specified name.static ColorFunctions.SystemColor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLACK
public static final ColorFunctions.SystemColor BLACK
-
RED
public static final ColorFunctions.SystemColor RED
-
GREEN
public static final ColorFunctions.SystemColor GREEN
-
YELLOW
public static final ColorFunctions.SystemColor YELLOW
-
BLUE
public static final ColorFunctions.SystemColor BLUE
-
MAGENTA
public static final ColorFunctions.SystemColor MAGENTA
-
CYAN
public static final ColorFunctions.SystemColor CYAN
-
WHITE
public static final ColorFunctions.SystemColor WHITE
-
-
Method Detail
-
values
public static ColorFunctions.SystemColor[] 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 (ColorFunctions.SystemColor c : ColorFunctions.SystemColor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColorFunctions.SystemColor 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
-
getName
public String getName()
-
valueOf
public static ColorFunctions.SystemColor valueOf(int index)
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:
index
- 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
-
-