Class MemoryUtils
java.lang.Object
VASSAL.tools.lang.MemoryUtils
A utility class for getting information about system memory.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
Gets the amount of physical memory (RAM) in this machine, in bytes.static void
-
Constructor Details
-
MemoryUtils
protected MemoryUtils()
-
-
Method Details
-
getPhysicalMemory
public static long getPhysicalMemory()Gets the amount of physical memory (RAM) in this machine, in bytes.- Returns:
- the amount of RAM, in bytes; or -1 if the amount of RAM cannot be queried.
-
main
-