Enum Constant and Description |
---|
BSD
Represents any non-Mac OS X BSD UNIX operating system.
|
HP_UX
Represents any HP-UX operating system.
|
LINUX
Represents any Linux operating system.
|
MACOS
Represents any non-OS X Mac OS operating system.
|
OSX
Represents any Mac OS X operating system.
|
SOLARIS
Represents any Solaris operating system.
|
UNIX
Represents any generic UNIX operating system (other than what is
specified above).
|
WINDOWS_9X
Represents any Windows 9X operating system (Windows 95, 98, and ME).
|
WINDOWS_NT
Represents any Windows NT operating system (NT, 2000, and above).
|
Modifier and Type | Method and Description |
---|---|
static PCD.OS |
detectOS()
Detects the current operating system
Check out: http://lopica.sourceforge.net/os.html
|
boolean |
isUNIX()
Returns true is the current operating system is UNIX-based.
|
boolean |
isWindows()
Returns true is the current operating system is Windows-based.
|
static PCD.OS |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PCD.OS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PCD.OS BSD
public static final PCD.OS LINUX
public static final PCD.OS HP_UX
public static final PCD.OS MACOS
public static final PCD.OS OSX
public static final PCD.OS SOLARIS
public static final PCD.OS WINDOWS_9X
public static final PCD.OS WINDOWS_NT
public static final PCD.OS UNIX
public static PCD.OS[] values()
for (PCD.OS c : PCD.OS.values()) System.out.println(c);
public static PCD.OS 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 boolean isWindows()
public boolean isUNIX()
public static PCD.OS detectOS()
Copyright © 2008-2022 University of Manitoba.