Package com.adyen.model.clouddevice
Enum DeviceStatus
- java.lang.Object
-
- java.lang.Enum<DeviceStatus>
-
- com.adyen.model.clouddevice.DeviceStatus
-
- All Implemented Interfaces:
Serializable,Comparable<DeviceStatus>
public enum DeviceStatus extends Enum<DeviceStatus>
DeviceStatus
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceStatusfromValue(String v)Creates an DeviceStatus from a string value.Stringvalue()Returns the string representation of the DeviceStatus.static DeviceStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static DeviceStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONLINE
public static final DeviceStatus ONLINE
-
OFFLINE
public static final DeviceStatus OFFLINE
-
-
Method Detail
-
values
public static DeviceStatus[] 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 (DeviceStatus c : DeviceStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeviceStatus 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()
Returns the string representation of the DeviceStatus.- Returns:
- the string value
-
fromValue
public static DeviceStatus fromValue(String v)
Creates an DeviceStatus from a string value.- Parameters:
v- the string value- Returns:
- the corresponding DeviceStatus
-
-