public static enum OperatingSystem.Family extends Enum<OperatingSystem.Family>
Enum Constant and Description |
---|
LINUX
A Linux operating system.
|
MAC_OS
A Mac OS operating system.
|
OTHER
An operating system other than those listed above.
|
SOLARIS
A Solaris operating system.
|
WINDOWS
A Windows operating system.
|
Modifier and Type | Method and Description |
---|---|
static OperatingSystem.Family |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperatingSystem.Family[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperatingSystem.Family LINUX
public static final OperatingSystem.Family MAC_OS
public static final OperatingSystem.Family WINDOWS
public static final OperatingSystem.Family SOLARIS
public static final OperatingSystem.Family OTHER
public static OperatingSystem.Family[] values()
for (OperatingSystem.Family c : OperatingSystem.Family.values()) System.out.println(c);
public static OperatingSystem.Family 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 null