Enum AdditionalField.DataType
- java.lang.Object
-
- java.lang.Enum<AdditionalField.DataType>
-
- ru.easydonate.easydonate4j.api.v3.data.model.shop.AdditionalField.DataType
-
- All Implemented Interfaces:
Serializable,Comparable<AdditionalField.DataType>
- Enclosing interface:
- AdditionalField
public static enum AdditionalField.DataType extends Enum<AdditionalField.DataType>
The enum that represents all possible and actual additional field data types.- Author:
- soknight
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull AdditionalField.DataTypegetByKey(@Nullable String key)Get the enum constant by the known additional field data type key (can be null).static AdditionalField.DataTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AdditionalField.DataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEXT
public static final AdditionalField.DataType TEXT
Represents the text data type.
-
NUMBER
public static final AdditionalField.DataType NUMBER
Represents the number data type.
-
UNKNOWN
public static final AdditionalField.DataType UNKNOWN
Represents a data type that isn't known yet.
-
-
Method Detail
-
values
public static AdditionalField.DataType[] 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 (AdditionalField.DataType c : AdditionalField.DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AdditionalField.DataType 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
-
getByKey
@NotNull public static @NotNull AdditionalField.DataType getByKey(@Nullable @Nullable String key)
Get the enum constant by the known additional field data type key (can be null).
If the key is null/empty or relevant enum constant with this key will not be found then this method will returnUNKNOWNconstant as default.- Parameters:
key- the data type key to find an enum constant.- Returns:
- The found data type enum constant or
UNKNOWNby default.
-
-