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
ConstructorsConstructorDescriptionTraceRecord(@NotNull String firstLine, @Nullable String nextLines) Creates an instance of aTraceRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull StringReturns the value of thefirstLinerecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of thenextLinesrecord component.static TraceRecordstatic TraceRecordfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TraceRecord
Creates an instance of aTraceRecordrecord class.- Parameters:
firstLine- the value for thefirstLinerecord componentnextLines- the value for thenextLinesrecord 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 thefirstLinerecord component.- Returns:
- the value of the
firstLinerecord component
-
nextLines
Returns the value of thenextLinesrecord component.- Returns:
- the value of the
nextLinesrecord component
-