Record Class AriaSnapshotHelper.AriaMatchResult
java.lang.Object
java.lang.Record
com.shaft.gui.internal.aria.AriaSnapshotHelper.AriaMatchResult
- Record Components:
matched-truewhen every baseline node was found in the actual snapshotdiffMessage- a readable description of the first mismatch, or empty when matched
- Enclosing class:
AriaSnapshotHelper
-
Constructor Summary
ConstructorsConstructorDescriptionAriaMatchResult(boolean matched, String diffMessage) Creates an instance of aAriaMatchResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediffMessagerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmatched()Returns the value of thematchedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AriaMatchResult
Creates an instance of aAriaMatchResultrecord class.- Parameters:
matched- the value for thematchedrecord componentdiffMessage- the value for thediffMessagerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
matched
-
diffMessage
Returns the value of thediffMessagerecord component.- Returns:
- the value of the
diffMessagerecord component
-