public enum OSPlatform extends java.lang.Enum<OSPlatform>
Enum Constant and Description |
---|
LINUX
Linux platform.
|
UNSPECIFIED
Unspecified platform.
|
WINDOWS
Windows platform.
|
Modifier and Type | Method and Description |
---|---|
static OSPlatform |
getDefault()
Get the enum constant that is considered to be the default.
|
static OSPlatform |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
java.lang.String |
toString() |
static OSPlatform |
valueOf(java.lang.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 UNSPECIFIED
public static final OSPlatform WINDOWS
public static final OSPlatform LINUX
public static OSPlatform[] values()
for (OSPlatform c : OSPlatform.values()) System.out.println(c);
public static OSPlatform valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public java.lang.String toString()
toString
in class java.lang.Enum<OSPlatform>
public static OSPlatform getFromValue(int value)
value
- a numeric value.public static OSPlatform getDefault()