Package org.github.jamm
Enum MemoryMeter.Guess
- java.lang.Object
-
- java.lang.Enum<MemoryMeter.Guess>
-
- org.github.jamm.MemoryMeter.Guess
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MemoryMeter.Guess>
- Enclosing class:
- MemoryMeter
public static enum MemoryMeter.Guess extends java.lang.Enum<MemoryMeter.Guess>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS_SPEC
ALWAYS_UNSAFE
FALLBACK_BEST
FALLBACK_SPEC
FALLBACK_UNSAFE
NEVER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MemoryMeter.Guess
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MemoryMeter.Guess[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER
public static final MemoryMeter.Guess NEVER
-
FALLBACK_SPEC
public static final MemoryMeter.Guess FALLBACK_SPEC
-
FALLBACK_UNSAFE
public static final MemoryMeter.Guess FALLBACK_UNSAFE
-
FALLBACK_BEST
public static final MemoryMeter.Guess FALLBACK_BEST
-
ALWAYS_SPEC
public static final MemoryMeter.Guess ALWAYS_SPEC
-
ALWAYS_UNSAFE
public static final MemoryMeter.Guess ALWAYS_UNSAFE
-
-
Method Detail
-
values
public static MemoryMeter.Guess[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MemoryMeter.Guess c : MemoryMeter.Guess.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MemoryMeter.Guess valueOf(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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-