public enum PlatformEnum extends Enum<PlatformEnum>
| Enum Constant and Description |
|---|
LINUX
A flavor of Linux
|
MACOSX
macOS (OS X)
|
UNKNOWN |
WINDOWS
Microsoft Windows
|
| Modifier and Type | Method and Description |
|---|---|
static PlatformEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlatformEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlatformEnum WINDOWS
public static final PlatformEnum LINUX
public static final PlatformEnum MACOSX
public static final PlatformEnum UNKNOWN
public static PlatformEnum[] values()
for (PlatformEnum c : PlatformEnum.values()) System.out.println(c);
public static PlatformEnum 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 © 2021. All rights reserved.