public final class Platform extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
OS_AIX |
static String |
OS_BSD |
static String |
OS_HP_UX |
static String |
OS_LINUX |
static String |
OS_MACOS |
static String |
OS_POSIX |
static String |
OS_SOLARIS |
static String |
OS_UNIX |
static String |
OS_VMS |
static String |
OS_WINDOWS |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getNativeLibExtension()
The suffix of a native library on this OS.
|
String |
getOS() |
int |
hashCode() |
boolean |
isLinux()
Tests whether the current OS is Linux.
|
boolean |
isMac()
Tests whether the current OS is MacOS.
|
boolean |
isUnix()
Tests whether the current OS is UNIX/Linux.
|
boolean |
isWindows()
Tests whether the current OS is Windows.
|
static Platform |
myPlatform() |
String |
toString() |
public static final String OS_WINDOWS
public static final String OS_MACOS
public static final String OS_LINUX
public static final String OS_SOLARIS
public static final String OS_BSD
public static final String OS_AIX
public static final String OS_HP_UX
public static final String OS_UNIX
public static final String OS_POSIX
public static final String OS_VMS
public Platform(String os)
public static Platform myPlatform()
public boolean isWindows()
public boolean isMac()
public boolean isLinux()
public boolean isUnix()
public String getOS()
public String getNativeLibExtension()