runtime.java

来自「专业汽车级嵌入式操作系统OSEK的源代码」· Java 代码 · 共 42 行

JAVA
42
字号
package java.lang;/** * Minimalist version of the standard Java Runtime class. * @author Paul Andrews */public class Runtime {  private static Runtime singleton;  /**   * Private so no one but us can create one.   */  private Runtime()  {  }  /**   * Get the single instance of us.   */  public static Runtime getRuntime()  {    if (singleton == null) {      singleton = new Runtime();    }    return singleton;  }  	  /**   * Return the amount of free memory.on the heap   *   * @return the free memory in bytes   */  public native long freeMemory();    /**   * Return the size of the heap in bytes.   *   * @return the free memory in bytes   */  public native long totalMemory();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?