Package com.axelor.db.audit
Record Class AuditProcessor.BatchResult
java.lang.Object
java.lang.Record
com.axelor.db.audit.AuditProcessor.BatchResult
- Enclosing class:
AuditProcessor
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBatchResult(int succeeded, int failed) Creates an instance of aBatchResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thesucceededrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BatchResult
protected BatchResult(int succeeded, int failed) Creates an instance of aBatchResultrecord class.- Parameters:
succeeded- the value for thesucceededrecord componentfailed- the value for thefailedrecord 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 with '=='. -
succeeded
public int succeeded()Returns the value of thesucceededrecord component.- Returns:
- the value of the
succeededrecord component
-
failed
public int failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-