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