Package io.jmix.masquerade.condition
Record Class SpecificCheck.ComputedCheck
java.lang.Object
java.lang.Record
io.jmix.masquerade.condition.SpecificCheck.ComputedCheck
- Record Components:
matched- whether the condition is matchedactualValue- actual value to report in case of a mismatch
- All Implemented Interfaces:
SpecificCheck
- Enclosing interface:
SpecificCheck
public static record SpecificCheck.ComputedCheck(boolean matched, Object actualValue)
extends Record
implements SpecificCheck
SpecificCheck with a precomputed verdict.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.masquerade.condition.SpecificCheck
SpecificCheck.ComputedCheck, SpecificCheck.ElementCheck -
Constructor Summary
ConstructorsConstructorDescriptionComputedCheck(boolean matched, Object actualValue) Creates an instance of aComputedCheckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactualValuerecord component.final booleanIndicates whether some other object is "equal to" this one.com.codeborne.selenide.CheckResultevaluate(com.codeborne.selenide.Driver driver) Computes the verdict of this check.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
-
ComputedCheck
Creates an instance of aComputedCheckrecord class.- Parameters:
matched- the value for thematchedrecord componentactualValue- the value for theactualValuerecord component
-
-
Method Details
-
evaluate
public com.codeborne.selenide.CheckResult evaluate(com.codeborne.selenide.Driver driver) Description copied from interface:SpecificCheckComputes the verdict of this check.- Specified by:
evaluatein interfaceSpecificCheck- Parameters:
driver- selenide driver- Returns:
- verdict of the check
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
matched
public boolean matched()Returns the value of thematchedrecord component.- Returns:
- the value of the
matchedrecord component
-
actualValue
Returns the value of theactualValuerecord component.- Returns:
- the value of the
actualValuerecord component
-