public class Platform extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isLinux()
Determine if the platform is Linux.
|
static boolean |
isMac()
Determine if the platform is Mac OS.
|
static boolean |
isSolaris()
Determine if the platform is Solaris.
|
static boolean |
isUnix()
Determine if the platform is Unix or Linux.
|
static boolean |
isWindows()
Determine if the platform is Windows.
|
static boolean |
isWindows(double version)
Determine if the platform is Windows and the version is
greater than or equal to the version specified.
|
public static boolean isWindows()
public static boolean isWindows(double version)
version
- The Windows version to verify.public static boolean isMac()
public static boolean isUnix()
public static boolean isLinux()
public static boolean isSolaris()