public enum ResourceAccuracy extends Enum<ResourceAccuracy>
HIGHEST. For
the HEAP_RETAINED meter, the enumeration reflects the accuracy based
on the current knowledge or lack thereof about the contents of the heap.| Enum Constant | Description |
|---|---|
HIGH |
The ResourceAccuracy is high.
|
HIGHEST |
The ResourceAccuracy is highest.
|
LOW |
The ResourceAccuracy is low.
|
MEDIUM |
The ResourceAccuracy is medium.
|
| Modifier and Type | Method | Description |
|---|---|---|
ResourceAccuracy |
improve() |
Returns the next improved ResourceAccuracy.
|
static ResourceAccuracy |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ResourceAccuracy[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceAccuracy LOW
public static final ResourceAccuracy MEDIUM
public static final ResourceAccuracy HIGH
public static final ResourceAccuracy HIGHEST
public static ResourceAccuracy[] values()
for (ResourceAccuracy c : ResourceAccuracy.values()) System.out.println(c);
public static ResourceAccuracy 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 ResourceAccuracy improve()
HIGHEST is returned.
Copyright © 2014, 2025, Oracle and/or its affiliates. All rights reserved.