Enum Class IMCStackTrace.TruncationState

java.lang.Object
java.lang.Enum<IMCStackTrace.TruncationState>
org.openjdk.jmc.common.IMCStackTrace.TruncationState
All Implemented Interfaces:
Serializable, Comparable<IMCStackTrace.TruncationState>, Constable
Enclosing interface:
IMCStackTrace

public static enum IMCStackTrace.TruncationState extends Enum<IMCStackTrace.TruncationState>
Information about the truncation state of the stack trace.
  • Enum Constant Details

  • Method Details

    • values

      public static IMCStackTrace.TruncationState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IMCStackTrace.TruncationState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - 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 for truncated stack traces, false for non-truncated stack traces, and null if the state is unknown
      Returns:
      a truncation state
    • isTruncated

      public boolean isTruncated()
      For all intents and purposes, we assume that UNKNOWN means not truncated.
      Returns:
      true if the stack trace has been truncated, false otherwise