Package com.adyen.model.nexo
Enum AlignmentType
- java.lang.Object
-
- java.lang.Enum<AlignmentType>
-
- com.adyen.model.nexo.AlignmentType
-
- All Implemented Interfaces:
Serializable,Comparable<AlignmentType>
public enum AlignmentType extends Enum<AlignmentType>
Java class for AlignmentType.The following schema fragment specifies the expected content contained within this class.
<simpleType name="AlignmentType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="Left"/> <enumeration value="Right"/> <enumeration value="Centred"/> <enumeration value="Justified"/> </restriction> </simpleType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AlignmentTypefromValue(String v)Returns the enum constant matching the given string, ornullif no match is found.Stringvalue()Value string.static AlignmentTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AlignmentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEFT
@SerializedName("Left") public static final AlignmentType LEFTLeft alignment type.
-
RIGHT
@SerializedName("Right") public static final AlignmentType RIGHTRight alignment type.
-
CENTRED
@SerializedName("Centred") public static final AlignmentType CENTREDCentred alignment type.
-
JUSTIFIED
@SerializedName("Justified") public static final AlignmentType JUSTIFIEDJustified alignment type.
-
-
Method Detail
-
values
public static AlignmentType[] 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 (AlignmentType c : AlignmentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlignmentType 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
-
fromValue
public static AlignmentType fromValue(String v)
Returns the enum constant matching the given string, ornullif no match is found.- Parameters:
v- string value- Returns:
- the AlignmentType, or
nullif no match is found.
-
-