public enum ColorType extends Enum<ColorType>
Java class for ColorType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="ColorType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="White"/>
<enumeration value="Black"/>
<enumeration value="Red"/>
<enumeration value="Green"/>
<enumeration value="Blue"/>
<enumeration value="Yellow"/>
<enumeration value="Magenta"/>
<enumeration value="Cyan"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
BLACK
Black color type.
|
BLUE
Blue color type.
|
CYAN
Cyan color type.
|
GREEN
Green color type.
|
MAGENTA
Magenta color type.
|
RED
Red color type.
|
WHITE
White color type.
|
YELLOW
Yellow color type.
|
| Modifier and Type | Method and Description |
|---|---|
static ColorType |
fromValue(String v)
From value color type.
|
String |
value()
Value string.
|
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 WHITE
public static final ColorType BLACK
public static final ColorType RED
public static final ColorType GREEN
public static final ColorType BLUE
public static final ColorType YELLOW
public static final ColorType MAGENTA
public static final ColorType CYAN
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 value()
Copyright © 2022. All rights reserved.