public enum OS extends Enum<OS>
Modifier and Type | Field and Description |
---|---|
String |
className
The identifier of this OS as part of a class name.
|
boolean |
hasProcFS |
Modifier and Type | Method and Description |
---|---|
String |
asPackageName()
Returns a string that can be used in a package name.
|
static OS |
getCurrent() |
boolean |
isCurrent() |
static OS |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OS DARWIN
public static final OS LINUX
public static final OS SOLARIS
public static final OS WINDOWS
public final String className
public final boolean hasProcFS
public static OS[] values()
public static 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 asPackageName()
public boolean isCurrent()
public static OS getCurrent()