Package org.openjdk.jmc.common
Enum IMCStackTrace.TruncationState
- java.lang.Object
-
- java.lang.Enum<IMCStackTrace.TruncationState>
-
- org.openjdk.jmc.common.IMCStackTrace.TruncationState
-
- All Implemented Interfaces:
Serializable,Comparable<IMCStackTrace.TruncationState>
- Enclosing interface:
- IMCStackTrace
public static enum IMCStackTrace.TruncationState extends Enum<IMCStackTrace.TruncationState>
Information about the truncation state of the stack trace.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOT_TRUNCATEDThe stack trace has not been truncated.TRUNCATEDThe stack trace has been truncated.UNKNOWNIs is unknown if the stack trace has been truncated or not.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IMCStackTrace.TruncationStatefromBoolean(Boolean trunc)Get the correct truncation state enum value based on a Boolean value.booleanisTruncated()For all intents and purposes, we assume thatUNKNOWNmeans not truncated.static IMCStackTrace.TruncationStatevalueOf(String name)Returns the enum constant of this type with the specified name.static IMCStackTrace.TruncationState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRUNCATED
public static final IMCStackTrace.TruncationState TRUNCATED
The stack trace has been truncated.
-
NOT_TRUNCATED
public static final IMCStackTrace.TruncationState NOT_TRUNCATED
The stack trace has not been truncated.
-
UNKNOWN
public static final IMCStackTrace.TruncationState UNKNOWN
Is is unknown if the stack trace has been truncated or not.
-
-
Method Detail
-
values
public static IMCStackTrace.TruncationState[] 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 (IMCStackTrace.TruncationState c : IMCStackTrace.TruncationState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IMCStackTrace.TruncationState valueOf(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- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromBoolean
public static IMCStackTrace.TruncationState fromBoolean(Boolean trunc)
Get the correct truncation state enum value based on a Boolean value.- Parameters:
trunc-truefortruncated stack traces,falsefornon-truncated stack traces, andnullif the state isunknown- Returns:
- a truncation state
-
isTruncated
public boolean isTruncated()
For all intents and purposes, we assume thatUNKNOWNmeans not truncated.- Returns:
trueif the stack trace has been truncated,falseotherwise
-
-