public final class Platform extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
OPERATING_SYSTEM
The name of the operating system on which the current JVM is running.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isLinux()
Return
true if current platform is Linux based. |
static boolean |
isMacOsX()
Return
true if current platform is OS X based. |
static boolean |
isSolaris()
Return
true if current platform is Solaris based. |
static boolean |
isWindows()
Return
true if current platform is Windows based. |
public static String OPERATING_SYSTEM
public static boolean isWindows()
true if current platform is Windows based.true if this is Windowspublic static boolean isMacOsX()
true if current platform is OS X based.true if this is OS Xpublic static boolean isLinux()
true if current platform is Linux based.true if this is Linuxpublic static boolean isSolaris()
true if current platform is Solaris based.true if this is Solaris