public enum Memory extends Enum<Memory>
Modifier and Type | Method and Description |
---|---|
static String |
heapSummary()
Returns a summary information about the heap memory.
|
static String |
poolSummaries()
Returns a summary information about the memory pools.
|
static Memory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Memory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Memory[] values()
for (Memory c : Memory.values()) System.out.println(c);
public static Memory valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static String heapSummary()
public static String poolSummaries()
Copyright © 2024. All rights reserved.