public static enum OperatingSystemInfo.OS extends Enum<OperatingSystemInfo.OS>
Enum Constant and Description |
---|
AIX |
HP_UX |
MAC |
OTHER |
POSIX_UNIX |
SOLARIS |
UNIX |
WINDOWS |
Modifier and Type | Method and Description |
---|---|
String |
getVersion() |
static OperatingSystemInfo.OS |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperatingSystemInfo.OS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperatingSystemInfo.OS WINDOWS
public static final OperatingSystemInfo.OS UNIX
public static final OperatingSystemInfo.OS AIX
public static final OperatingSystemInfo.OS HP_UX
public static final OperatingSystemInfo.OS SOLARIS
public static final OperatingSystemInfo.OS POSIX_UNIX
public static final OperatingSystemInfo.OS MAC
public static final OperatingSystemInfo.OS OTHER
public static OperatingSystemInfo.OS[] values()
for (OperatingSystemInfo.OS c : OperatingSystemInfo.OS.values()) System.out.println(c);
public static OperatingSystemInfo.OS 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 getVersion()
Copyright © 2024. All rights reserved.