Package com.adyen.model.nexo
Enum PeriodUnitType
- java.lang.Object
-
- java.lang.Enum<PeriodUnitType>
-
- com.adyen.model.nexo.PeriodUnitType
-
- All Implemented Interfaces:
Serializable,Comparable<PeriodUnitType>
public enum PeriodUnitType extends Enum<PeriodUnitType>
Java class for PeriodUnitType.The following schema fragment specifies the expected content contained within this class.
<simpleType name="PeriodUnitType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="Daily"/> <enumeration value="Weekly"/> <enumeration value="Monthly"/> <enumeration value="Annual"/> </restriction> </simpleType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PeriodUnitTypefromValue(String v)Returns the enum constant matching the given string, ornullif no match is found.Stringvalue()Value string.static PeriodUnitTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PeriodUnitType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAILY
@SerializedName("Daily") public static final PeriodUnitType DAILYThe day is the unit of the period.
-
WEEKLY
@SerializedName("Weekly") public static final PeriodUnitType WEEKLYThe week is the unit of the period.
-
MONTHLY
@SerializedName("Monthly") public static final PeriodUnitType MONTHLYThe month is the unit of the period.
-
ANNUAL
@SerializedName("Annual") public static final PeriodUnitType ANNUALThe year is the unit of the period.
-
-
Method Detail
-
values
public static PeriodUnitType[] 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 (PeriodUnitType c : PeriodUnitType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PeriodUnitType 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 PeriodUnitType fromValue(String v)
Returns the enum constant matching the given string, ornullif no match is found.- Parameters:
v- string value- Returns:
- the PeriodUnitType, or
nullif no match is found.
-
-