java.lang
Class Runtime
java.lang.Object
|
+--java.lang.Runtime
- public class Runtime
- extends Object
Minimalist version of the standard Java Runtime class.
- Author:
- Paul Andrews
Method Summary |
long |
freeMemory()
Return the amount of free memory.on the heap |
static Runtime |
getRuntime()
Get the single instance of us. |
long |
totalMemory()
Return the size of the heap in bytes. |
getRuntime
public static Runtime getRuntime()
- Get the single instance of us.
freeMemory
public long freeMemory()
- Return the amount of free memory.on the heap
- Returns:
- the free memory in bytes
totalMemory
public long totalMemory()
- Return the size of the heap in bytes.
- Returns:
- the free memory in bytes