public static enum DesktopApi.EnumOS extends java.lang.Enum<DesktopApi.EnumOS>
Enum Constant and Description |
---|
linux |
macos |
solaris |
unknown |
windows |
Modifier and Type | Method and Description |
---|---|
boolean |
isLinux() |
boolean |
isMac() |
boolean |
isWindows() |
static DesktopApi.EnumOS |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DesktopApi.EnumOS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DesktopApi.EnumOS linux
public static final DesktopApi.EnumOS macos
public static final DesktopApi.EnumOS solaris
public static final DesktopApi.EnumOS unknown
public static final DesktopApi.EnumOS windows
public static DesktopApi.EnumOS[] values()
for (DesktopApi.EnumOS c : DesktopApi.EnumOS.values()) System.out.println(c);
public static DesktopApi.EnumOS 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 boolean isLinux()
public boolean isMac()
public boolean isWindows()