public enum OSPlatform extends Enum<OSPlatform>
Enum Constant and Description |
---|
UNIX
Represents Unix based operating systems such as OSX, Linux, or other.
|
WINDOWS
Represents Windows operating system [ all the sub flavors of windows such as XP, Vista, windows 7 etc., are
collectively represented by this value.
|
Modifier and Type | Method and Description |
---|---|
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 WINDOWS
public static final OSPlatform UNIX
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 nullCopyright © 2016 PayPal Open Source. All rights reserved.