Package com.adyen.model.nexo
Enum ColorType
- java.lang.Object
-
- java.lang.Enum<ColorType>
-
- com.adyen.model.nexo.ColorType
-
- All Implemented Interfaces:
Serializable,Comparable<ColorType>
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>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColorTypefromValue(String v)From value color type.Stringvalue()Value string.static ColorTypevalueOf(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.
-
-
-
Enum Constant Detail
-
WHITE
public static final ColorType WHITE
White color type.
-
BLACK
public static final ColorType BLACK
Black color type.
-
RED
public static final ColorType RED
Red color type.
-
GREEN
public static final ColorType GREEN
Green color type.
-
BLUE
public static final ColorType BLUE
Blue color type.
-
YELLOW
public static final ColorType YELLOW
Yellow color type.
-
MAGENTA
public static final ColorType MAGENTA
Magenta color type.
-
CYAN
public static final ColorType CYAN
Cyan color type.
-
-
Method Detail
-
values
public static ColorType[] 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 (ColorType c : ColorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColorType 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
-
value
public String value()
Value string.- Returns:
- the string
-
-