org.biolegato.core.main
Enum BLMain.OS
java.lang.Object
java.lang.Enum<BLMain.OS>
org.biolegato.core.main.BLMain.OS
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<BLMain.OS>
- Enclosing class:
- BLMain
public static enum BLMain.OS
- extends java.lang.Enum<BLMain.OS>
|
Method Summary |
static BLMain.OS |
detectOS()
Check out: http://lopica.sourceforge.net/os.html |
boolean |
isUNIX()
|
boolean |
isWindows()
|
static BLMain.OS |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BLMain.OS[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
BSD
public static final BLMain.OS BSD
LINUX
public static final BLMain.OS LINUX
HP_UX
public static final BLMain.OS HP_UX
MACOS
public static final BLMain.OS MACOS
OSX
public static final BLMain.OS OSX
SOLARIS
public static final BLMain.OS SOLARIS
WINDOWS_9X
public static final BLMain.OS WINDOWS_9X
WINDOWS_NT
public static final BLMain.OS WINDOWS_NT
UNIX
public static final BLMain.OS UNIX
values
public static final BLMain.OS[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(BLMain.OS c : BLMain.OS.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static BLMain.OS valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
isWindows
public boolean isWindows()
isUNIX
public boolean isUNIX()
detectOS
public static BLMain.OS detectOS()
- Check out: http://lopica.sourceforge.net/os.html
Copyright © 2008-2010 University of Manitoba.