public class OS extends Object
Modifier and Type | Field and Description |
---|---|
protected static Boolean |
m_IsAndroid
whether the OS is Android.
|
protected static Boolean |
m_IsLinux
whether the OS is Linux.
|
protected static Boolean |
m_IsMac
whether the OS is Mac.
|
protected static Boolean |
m_IsWindows
whether the OS is Windows.
|
Constructor and Description |
---|
OS() |
Modifier and Type | Method and Description |
---|---|
static int |
getBitness()
Returns the "bitness", ie 32 or 64 bit of the underlying OS.
|
static boolean |
isAndroid()
Checks whether the operating system is Android.
|
static boolean |
isLinux()
Checks whether the operating system is Linux (but not Android).
|
static boolean |
isMac()
Checks whether the operating system is Mac.
|
static boolean |
isWindows()
Checks whether the operating system is Windows.
|
protected static Boolean m_IsWindows
protected static Boolean m_IsMac
protected static Boolean m_IsLinux
protected static Boolean m_IsAndroid
public static boolean isWindows()
public static boolean isMac()
public static boolean isLinux()
public static boolean isAndroid()
public static int getBitness()
Copyright © 2017. All Rights Reserved.