Package com.adyen.model.balanceplatform
Enum Duration.UnitEnum
- java.lang.Object
-
- java.lang.Enum<Duration.UnitEnum>
-
- com.adyen.model.balanceplatform.Duration.UnitEnum
-
- All Implemented Interfaces:
Serializable,Comparable<Duration.UnitEnum>
- Enclosing class:
- Duration
public static enum Duration.UnitEnum extends Enum<Duration.UnitEnum>
The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months**
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Duration.UnitEnumfromValue(String value)StringgetValue()StringtoString()static Duration.UnitEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static Duration.UnitEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAYS
public static final Duration.UnitEnum DAYS
-
HOURS
public static final Duration.UnitEnum HOURS
-
MINUTES
public static final Duration.UnitEnum MINUTES
-
MONTHS
public static final Duration.UnitEnum MONTHS
-
WEEKS
public static final Duration.UnitEnum WEEKS
-
-
Method Detail
-
values
public static Duration.UnitEnum[] 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 (Duration.UnitEnum c : Duration.UnitEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Duration.UnitEnum 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
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<Duration.UnitEnum>
-
fromValue
public static Duration.UnitEnum fromValue(String value)
-
-