Package com.axelor.ai.provider.sync
Record Class RuleEngine.Match
java.lang.Object
java.lang.Record
com.axelor.ai.provider.sync.RuleEngine.Match
- Enclosing class:
RuleEngine
A vendor model paired with the family that claimed it.
-
Constructor Summary
ConstructorsConstructorDescriptionMatch(VendorModel model, SyncRules.Family family) Creates an instance of aMatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.family()Returns the value of thefamilyrecord component.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Match
Creates an instance of aMatchrecord class.- Parameters:
model- the value for themodelrecord componentfamily- the value for thefamilyrecord component
-
-
Method Details
-
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). -
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
family
Returns the value of thefamilyrecord component.- Returns:
- the value of the
familyrecord component
-