public class Os
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
isLinux() |
Checks whether the current underlying operating system is a Linux.
|
static boolean |
isLinux32() |
Checks whether the current underlying operating system is a 32-bit Linux.
|
static boolean |
isLinux64() |
Checks whether the current underlying operating system is a 64-bit Linux.
|
static boolean |
isMacOs() |
Checks whether the current underlying operating system is a macOS.
|
static boolean |
isSolaris() |
Checks whether the current underlying operating system is a Solaris.
|
static boolean |
isWindows() |
Checks whether the current underlying operating system is a Microsoft Windows.
|
static boolean |
isWindows32() |
Checks whether the current underlying operating system is a 32-bit Microsoft Windows.
|
static boolean |
isWindows64() |
Checks whether the current underlying operating system is a 64-bit Microsoft Windows.
|
public static boolean isLinux()
public static boolean isLinux32()
public static boolean isLinux64()
public static boolean isMacOs()
public static boolean isSolaris()
public static boolean isWindows()
public static boolean isWindows32()
public static boolean isWindows64()