|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SystemProperties.OperatingSystem>
net.sourceforge.atunes.kernel.utils.SystemProperties.OperatingSystem
public static enum SystemProperties.OperatingSystem
Operating Systems Enum.
Enum Constant Summary | |
---|---|
LINUX
The LINUX. |
|
MACOSX
The MACOSX. |
|
SOLARIS
The SOLARIS. |
|
WINDOWS
The WINDOWS. |
Method Summary | |
---|---|
java.lang.String |
getLaunchCommand()
Returns a string with command to launch application This method is used when restarting app |
boolean |
isLinux()
Returns true if Linux is the current operating system. |
boolean |
isMacOsX()
Returns true if MacOsX is the current operating
system. |
boolean |
isSolaris()
Returns true if Solaris is the current operating
system. |
boolean |
isVista()
Returns true if Windows Vista is the current operating
system. |
boolean |
isWindows()
Returns true if Windows is the current operating
system, but is not Windows Vista. |
static SystemProperties.OperatingSystem |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SystemProperties.OperatingSystem[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SystemProperties.OperatingSystem WINDOWS
public static final SystemProperties.OperatingSystem LINUX
public static final SystemProperties.OperatingSystem MACOSX
public static final SystemProperties.OperatingSystem SOLARIS
Method Detail |
---|
public static SystemProperties.OperatingSystem[] values()
for (SystemProperties.OperatingSystem c : SystemProperties.OperatingSystem.values()) System.out.println(c);
public static SystemProperties.OperatingSystem 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 name
java.lang.NullPointerException
- if the argument is nullpublic boolean isVista()
true
if Windows Vista is the current operating
system.
public boolean isWindows()
true
if Windows is the current operating
system, but is not Windows Vista.
public boolean isLinux()
true
if Linux is the current operating system.
public boolean isMacOsX()
true
if MacOsX is the current operating
system.
public boolean isSolaris()
true
if Solaris is the current operating
system.
public java.lang.String getLaunchCommand()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |