public class OSTools
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
OSTools.OS |
Constructor and Description |
---|
OSTools() |
Modifier and Type | Method and Description |
---|---|
static int[] |
getMacOSXVersion()
Return version number for Mac OS X as array, for example: 10.6.2 -> {10, 6, 2}.
|
static boolean |
isJava9()
Returns whether the running java VM is Java 9.
|
static boolean |
isLinux()
Returns whether the operating system is Linux.
|
static boolean |
isMac()
Returns whether the operating system is Mac.
|
static boolean |
isWin()
Returns whether the operating system is Windows.
|
public static boolean isMac()
true
if the operating system is Mac; false
otherwise.public static int[] getMacOSXVersion()
public static boolean isWin()
true
if the operating system is a Windows; false
otherwise.public static boolean isLinux()
true
if the operating system is a Windows; false
otherwise.public static boolean isJava9()
true
if the running java VM is Java 9; false
otherwise.www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.