Record Class TraceRecord
java.lang.Object
java.lang.Record
com.evolveum.midpoint.schema.traces.details.TraceRecord
Default or customized text form of an
AbstractTraceEvent
.- See Also:
-
Constructor Summary
ConstructorDescriptionTraceRecord
(@NotNull String firstLine, @Nullable String nextLines) Creates an instance of aTraceRecord
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.@NotNull String
Returns the value of thefirstLine
record component.final int
hashCode()
Returns a hash code value for this object.@Nullable String
Returns the value of thenextLines
record component.static TraceRecord
static TraceRecord
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TraceRecord
Creates an instance of aTraceRecord
record class.- Parameters:
firstLine
- the value for thefirstLine
record componentnextLines
- the value for thenextLines
record component
-
-
Method Details
-
of
-
of
public static TraceRecord of(@NotNull @NotNull String firstLine, @Nullable @Nullable String nextLines) -
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. -
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. -
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)
. -
firstLine
Returns the value of thefirstLine
record component.- Returns:
- the value of the
firstLine
record component
-
nextLines
Returns the value of thenextLines
record component.- Returns:
- the value of the
nextLines
record component
-