Serializable
, Comparable<Platform.OperatingSystem>
public static enum Platform.OperatingSystem extends Enum<Platform.OperatingSystem>
OperatingSystem
s.
For unknown operating systems
, getName()
will return
the the same value as System.getProperty("os.name")
.Modifier and Type | Method | Description |
---|---|---|
String |
getName() |
|
String |
id() |
|
String |
toString() |
|
static Platform.OperatingSystem |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Platform.OperatingSystem[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Platform.OperatingSystem Windows
public static final Platform.OperatingSystem Linux
public static final Platform.OperatingSystem Solaris
public static final Platform.OperatingSystem MacOS
public static final Platform.OperatingSystem Unknown
public static Platform.OperatingSystem[] values()
for (Platform.OperatingSystem c : Platform.OperatingSystem.values()) System.out.println(c);
public static Platform.OperatingSystem 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 String getName()
public String id()
public String toString()
toString
in class Enum<Platform.OperatingSystem>
Copyright © 2018. All rights reserved.