APIdia Launch Partner
Top Description Fields Constructors Methods
java.lang.management

public final Enum MemoryType

extends Enum<MemoryType>
Class Inheritance

Types of memory pools.
Author
Mandy Chung
Since
1.5

Field Summary

Modifier and TypeField and Description
private final String
public static final MemoryType
HEAP

Heap memory type.

public static final MemoryType
NON_HEAP

Non-heap memory type.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the string representation of this MemoryType.
toString
()

Overrides java.lang.Enum.toString.

Returns the string representation of this MemoryType.

public static MemoryType
public static MemoryType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

descriptionback to summary
private final String description
HEAPback to summary
public static final MemoryType HEAP

Heap memory type.

The Java virtual machine has a heap that is the runtime data area from which memory for all class instances and arrays are allocated.

NON_HEAPback to summary
public static final MemoryType NON_HEAP

Non-heap memory type.

The Java virtual machine manages memory other than the heap (referred as non-heap memory). The non-heap memory includes the method area and memory required for the internal processing or optimization for the Java virtual machine. It stores per-class structures such as a runtime constant pool, field and method data, and the code for methods and constructors.

Constructor Detail

MemoryTypeback to summary
private MemoryType(String s)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Returns the string representation of this MemoryType.

Returns:String

the string representation of this MemoryType.

valueOfback to summary
public static MemoryType valueOf(String name)
valuesback to summary
public static MemoryType[] values()