Package com.testdroid.api.model
Enum APIDevice.OsType
- java.lang.Object
-
- java.lang.Enum<APIDevice.OsType>
-
- com.testdroid.api.model.APIDevice.OsType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<APIDevice.OsType>
- Enclosing class:
- APIDevice
public static enum APIDevice.OsType extends java.lang.Enum<APIDevice.OsType>
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<APIDevice.OsType>
DESKTOPS
static java.util.List<APIDevice.OsType>
MOBILES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDisplayName()
java.util.List<APIDevice.OsType>
getFamily()
boolean
isAndroid()
boolean
isDesktop()
boolean
isIos()
static APIDevice.OsType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static APIDevice.OsType[]
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.OsType IOS
-
ANDROID
public static final APIDevice.OsType ANDROID
-
DESKTOP
public static final APIDevice.OsType DESKTOP
-
UNDEFINED
public static final APIDevice.OsType UNDEFINED
-
-
Field Detail
-
MOBILES
public static final java.util.List<APIDevice.OsType> MOBILES
-
DESKTOPS
public static final java.util.List<APIDevice.OsType> DESKTOPS
-
-
Method Detail
-
values
public static APIDevice.OsType[] 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.OsType c : APIDevice.OsType.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.OsType 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
-
getDisplayName
public java.lang.String getDisplayName()
-
isAndroid
public boolean isAndroid()
-
isIos
public boolean isIos()
-
isDesktop
public boolean isDesktop()
-
getFamily
public java.util.List<APIDevice.OsType> getFamily()
-
-