java.lang.management
Enum MemoryType

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.lang.Enum sample code for java.lang.Enum definition code for java.lang.Enum <MemoryType sample code for java.lang.management.MemoryType definition code for java.lang.management.MemoryType >
      extended by java.lang.management.MemoryType
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable <MemoryType sample code for java.lang.management.MemoryType definition code for java.lang.management.MemoryType >

public enum MemoryType
extends Enum sample code for java.lang.Enum definition code for java.lang.Enum <MemoryType sample code for java.lang.management.MemoryType definition code for java.lang.management.MemoryType >

Types of memory pools sample code for java.lang.management.MemoryPoolMXBean definition code for java.lang.management.MemoryPoolMXBean .

Since:
1.5

Enum Constant Summary
HEAP sample code for java.lang.management.MemoryType.HEAP definition code for java.lang.management.MemoryType.HEAP
          Heap memory type.
NON_HEAP sample code for java.lang.management.MemoryType.NON_HEAP definition code for java.lang.management.MemoryType.NON_HEAP
          Non-heap memory type.
 
Method Summary
 String sample code for java.lang.String definition code for java.lang.String toString sample code for java.lang.management.MemoryType.toString() definition code for java.lang.management.MemoryType.toString() ()
          Returns the string representation of this MemoryType.
static MemoryType sample code for java.lang.management.MemoryType definition code for java.lang.management.MemoryType valueOf sample code for java.lang.management.MemoryType.valueOf(java.lang.String) definition code for java.lang.management.MemoryType.valueOf(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  name)
          Returns the enum constant of this type with the specified name.
static MemoryType sample code for java.lang.management.MemoryType definition code for java.lang.management.MemoryType [] values sample code for java.lang.management.MemoryType.values() definition code for java.lang.management.MemoryType.values() ()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum sample code for java.lang.Enum definition code for java.lang.Enum
clone sample code for java.lang.Enum.clone() definition code for java.lang.Enum.clone() , compareTo sample code for java.lang.Enum.compareTo(E) definition code for java.lang.Enum.compareTo(E) , equals sample code for java.lang.Enum.equals(java.lang.Object) definition code for java.lang.Enum.equals(java.lang.Object) , getDeclaringClass sample code for java.lang.Enum.getDeclaringClass() definition code for java.lang.Enum.getDeclaringClass() , hashCode sample code for java.lang.Enum.hashCode() definition code for java.lang.Enum.hashCode() , name sample code for java.lang.Enum.name() definition code for java.lang.Enum.name() , ordinal sample code for java.lang.Enum.ordinal() definition code for java.lang.Enum.ordinal() , valueOf sample code for java.lang.Enum.valueOf(java.lang.Class, java.lang.String) definition code for java.lang.Enum.valueOf(java.lang.Class, java.lang.String)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Enum Constant Detail

HEAP

public static final MemoryType sample code for java.lang.management.MemoryType definition code for java.lang.management.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_HEAP

public static final MemoryType sample code for java.lang.management.MemoryType definition code for java.lang.management.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.

Method Detail

values sample code for java.lang.management.MemoryType.values() definition code for java.lang.management.MemoryType.values()

public static final MemoryType sample code for java.lang.management.MemoryType definition code for java.lang.management.MemoryType [] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(MemoryType c : MemoryType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf sample code for java.lang.management.MemoryType.valueOf(java.lang.String) definition code for java.lang.management.MemoryType.valueOf(java.lang.String)

public static MemoryType sample code for java.lang.management.MemoryType definition code for java.lang.management.MemoryType  valueOf(String sample code for java.lang.String definition code for java.lang.String  name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

toString sample code for java.lang.management.MemoryType.toString() definition code for java.lang.management.MemoryType.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Returns the string representation of this MemoryType.

Overrides:
toString sample code for java.lang.Enum.toString() definition code for java.lang.Enum.toString() in class Enum sample code for java.lang.Enum definition code for java.lang.Enum <MemoryType sample code for java.lang.management.MemoryType definition code for java.lang.management.MemoryType >
Returns:
the string representation of this MemoryType.