Modifier and Type | Method and Description |
---|---|
static OSType |
computeType() |
static OSType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OSType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OSType DEFAULT
public static final OSType MAC
public static final OSType WINDOWS
public static OSType[] values()
for (OSType c : OSType.values()) System.out.println(c);
public static OSType 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 static OSType computeType()
http://lopica.sourceforge.net/os.html is a source of the various values from os.name
.