java.io.Serializable
, java.lang.Comparable<OperatingSystem.Family>
public static enum OperatingSystem.Family extends java.lang.Enum<OperatingSystem.Family>
Enum Constant | 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 | Description |
---|---|---|
static OperatingSystem.Family |
valueOf(java.lang.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(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 null