Package com.testdroid.api.model
Enum APIDevice.Platform
- java.lang.Object
-
- java.lang.Enum<APIDevice.Platform>
-
- com.testdroid.api.model.APIDevice.Platform
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<APIDevice.Platform>
- Enclosing class:
- APIDevice
public static enum APIDevice.Platform extends java.lang.Enum<APIDevice.Platform>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static APIDevice.Platform
getByDisplayName(java.lang.String displayName)
java.lang.String
getDisplayName()
APIDevice.OsType
getOsType()
static APIDevice.Platform
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static APIDevice.Platform[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IOS
public static final APIDevice.Platform IOS
-
ANDROID
public static final APIDevice.Platform ANDROID
-
WINDOWS
public static final APIDevice.Platform WINDOWS
-
MAC
public static final APIDevice.Platform MAC
-
LINUX
public static final APIDevice.Platform LINUX
-
UNDEFINED
public static final APIDevice.Platform UNDEFINED
-
-
Method Detail
-
values
public static APIDevice.Platform[] 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 (APIDevice.Platform c : APIDevice.Platform.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static APIDevice.Platform valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getOsType
public APIDevice.OsType getOsType()
-
getDisplayName
public java.lang.String getDisplayName()
-
getByDisplayName
public static APIDevice.Platform getByDisplayName(java.lang.String displayName)
-
-