Package org.xhtmlrenderer.test
Record Class ReferenceComparison.CompareStatistics.LineMismatch
java.lang.Object
java.lang.Record
org.xhtmlrenderer.test.ReferenceComparison.CompareStatistics.LineMismatch
- All Implemented Interfaces:
ReferenceComparison.CompareStatistics.FailedResult
,ReferenceComparison.CompareStatistics.Result
- Enclosing class:
- ReferenceComparison.CompareStatistics
private static record ReferenceComparison.CompareStatistics.LineMismatch(String lineRef, String lineOther)
extends Record
implements ReferenceComparison.CompareStatistics.FailedResult
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
LineMismatch
(String lineRef, String lineOther) Creates an instance of aLineMismatch
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelineOther
record component.lineRef()
Returns the value of thelineRef
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
lineRef
The field for thelineRef
record component. -
lineOther
The field for thelineOther
record component.
-
-
Constructor Details
-
LineMismatch
Creates an instance of aLineMismatch
record class.- Parameters:
lineRef
- the value for thelineRef
record componentlineOther
- the value for thelineOther
record component
-
-
Method Details
-
describe
- Specified by:
describe
in interfaceReferenceComparison.CompareStatistics.Result
-
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)
. -
lineRef
Returns the value of thelineRef
record component.- Returns:
- the value of the
lineRef
record component
-
lineOther
Returns the value of thelineOther
record component.- Returns:
- the value of the
lineOther
record component
-