java.lang
Class Runtime

java.lang.Object
  extended by 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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