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_TRUNCATED
The stack trace has not been truncated.TRUNCATED
The stack trace has been truncated.UNKNOWN
Is 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.TruncationState
fromBoolean(Boolean trunc)
Get the correct truncation state enum value based on a Boolean value.boolean
isTruncated()
For all intents and purposes, we assume thatUNKNOWN
means not truncated.static IMCStackTrace.TruncationState
valueOf(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
-true
fortruncated stack traces
,false
fornon-truncated stack traces
, andnull
if the state isunknown
- Returns:
- a truncation state
-
isTruncated
public boolean isTruncated()
For all intents and purposes, we assume thatUNKNOWN
means not truncated.- Returns:
true
if the stack trace has been truncated,false
otherwise
-
-