public enum MemoryType extends Enum<MemoryType>
memory pools
。
Modifier and Type | Method and Description |
---|---|
String |
toString()
这
MemoryType返回的字符串表示形式。
|
static MemoryType |
valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static MemoryType[] |
values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
public static final MemoryType HEAP
java虚拟机有一个空堆是运行时数据区,所有类的实例和数组的内存分配。
public static final MemoryType NON_HEAP
java虚拟机内存管理比其他堆(简称空非堆内存)。非堆内存包括空方法区记忆所需的内部处理或优化的java虚拟机。它存储每个类结构,如运行时常量池、字段和方法数据,以及方法和构造函数的代码。
public static MemoryType[] values()
对(只常驻型C:只常驻型。values()) 系统,println(C);
public static MemoryType valueOf(String name)
name
-定要返回的枚举的名称。
IllegalArgumentException
-如果这个枚举类型,也没有固定的具有指定名称
NullPointerException
-如果参数为空
public String toString()
toString
方法重写,继承类
Enum<MemoryType>
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.