Record Class Diagnostic.LogFrame

java.lang.Object
java.lang.Record
com.ultikits.ultitools.exceptions.Diagnostic.LogFrame
Enclosing class:
Diagnostic

private static record Diagnostic.LogFrame(Throwable failure, @Nullable String message, @Nullable Diagnostic diagnostic) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final @Nullable Diagnostic
    The field for the diagnostic record component.
    private final Throwable
    The field for the failure record component.
    private final @Nullable String
    The field for the message record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    LogFrame(Throwable failure, @Nullable String message, @Nullable Diagnostic diagnostic)
    Creates an instance of a LogFrame record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Diagnostic
    Returns the value of the diagnostic record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the failure record component.
    final int
    Returns a hash code value for this object.
    @Nullable String
    Returns the value of the message record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • failure

      private final Throwable failure
      The field for the failure record component.
    • message

      @Nullable private final @Nullable String message
      The field for the message record component.
    • diagnostic

      @Nullable private final @Nullable Diagnostic diagnostic
      The field for the diagnostic record component.
  • Constructor Details

    • LogFrame

      private LogFrame(Throwable failure, @Nullable @Nullable String message, @Nullable @Nullable Diagnostic diagnostic)
      Creates an instance of a LogFrame record class.
      Parameters:
      failure - the value for the failure record component
      message - the value for the message record component
      diagnostic - the value for the diagnostic record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • failure

      public Throwable failure()
      Returns the value of the failure record component.
      Returns:
      the value of the failure record component
    • message

      @Nullable public @Nullable String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • diagnostic

      @Nullable public @Nullable Diagnostic diagnostic()
      Returns the value of the diagnostic record component.
      Returns:
      the value of the diagnostic record component