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
FieldsModifier and TypeFieldDescriptionprivate final @Nullable DiagnosticThe field for thediagnosticrecord component.private final ThrowableThe field for thefailurerecord component.private final @Nullable StringThe field for themessagerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLogFrame(Throwable failure, @Nullable String message, @Nullable Diagnostic diagnostic) Creates an instance of aLogFramerecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable DiagnosticReturns the value of thediagnosticrecord component.final booleanIndicates whether some other object is "equal to" this one.failure()Returns the value of thefailurerecord component.final inthashCode()Returns a hash code value for this object.@Nullable Stringmessage()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
failure
The field for thefailurerecord component. -
message
The field for themessagerecord component. -
diagnostic
The field for thediagnosticrecord component.
-
-
Constructor Details
-
LogFrame
private LogFrame(Throwable failure, @Nullable @Nullable String message, @Nullable @Nullable Diagnostic diagnostic) Creates an instance of aLogFramerecord class.- Parameters:
failure- the value for thefailurerecord componentmessage- the value for themessagerecord componentdiagnostic- the value for thediagnosticrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
failure
Returns the value of thefailurerecord component.- Returns:
- the value of the
failurerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
diagnostic
Returns the value of thediagnosticrecord component.- Returns:
- the value of the
diagnosticrecord component
-