public enum OSPlatform extends Enum<OSPlatform>
| Enum Constant and Description |
|---|
Android |
AndroidWeb |
IOS |
IOSWeb |
Web |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsAndroid(String osPlatform) |
static boolean |
containsIOS(String osPlatform) |
static boolean |
containsWeb(String osPlatform) |
static OSPlatform |
fromString(String osPlatform) |
int |
getValue() |
static boolean |
isAndroid(String osPlatform) |
static boolean |
isAndroidWeb(String osPlatform) |
static boolean |
isIOS(String osPlatform) |
static boolean |
isIOSWeb(String osPlatform) |
static boolean |
isValid(String osPlatform) |
static boolean |
isWeb(String osPlatform) |
static OSPlatform |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OSPlatform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OSPlatform Android
public static final OSPlatform IOS
public static final OSPlatform Web
public static final OSPlatform AndroidWeb
public static final OSPlatform IOSWeb
public static OSPlatform[] values()
for (OSPlatform c : OSPlatform.values()) System.out.println(c);
public static OSPlatform valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getValue()
public static OSPlatform fromString(String osPlatform)
public static boolean containsAndroid(String osPlatform)
public static boolean containsIOS(String osPlatform)
public static boolean containsWeb(String osPlatform)
public static boolean isAndroid(String osPlatform)
public static boolean isIOS(String osPlatform)
public static boolean isWeb(String osPlatform)
public static boolean isAndroidWeb(String osPlatform)
public static boolean isIOSWeb(String osPlatform)
public static boolean isValid(String osPlatform)
Copyright © 2018. All rights reserved.