public class OSUtils
extends java.lang.Object
Constructor and Description |
---|
OSUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Long |
getLongProperty(java.lang.String name) |
static java.lang.Long |
getLongProperty(java.lang.String name,
int radix) |
static java.lang.String |
getOsName() |
static long |
getTotalPhysicalMemory()
Safe call to obtain size of total physical memory.
|
static boolean |
isLinux() |
static boolean |
isWindows() |
static boolean |
isWsl() |
static long |
longValueOf(java.lang.String value,
int radix) |
public static long getTotalPhysicalMemory()
It is platform dependent and returns size of machine physical memory in bytes
public static java.lang.Long getLongProperty(java.lang.String name)
public static java.lang.Long getLongProperty(java.lang.String name, int radix)
public static long longValueOf(java.lang.String value, int radix)
public static java.lang.String getOsName()
public static boolean isLinux()
public static boolean isWindows()
public static boolean isWsl()