public static enum Platform.OperatingSystem extends Enum<Platform.OperatingSystem>
| Enum Constant and Description |
|---|
FREEBSD
FreeBSD.
|
LINUX
Linux.
|
MAC
macOS.
|
WINDOWS
Windows.
|
| Modifier and Type | Method and Description |
|---|---|
static Platform.OperatingSystem |
detected()
Returns the detected operating system.
|
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 MAC
public static final Platform.OperatingSystem FREEBSD
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 static Platform.OperatingSystem detected()
IllegalArgumentException - if no match was foundCopyright © 2024. All rights reserved.