Package com.axelor.ai.seed
Record Class SeedResult
java.lang.Object
java.lang.Record
com.axelor.ai.seed.SeedResult
Count of records created and updated by a seed pass.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSeedResult(int created, int updated) Creates an instance of aSeedResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcreated()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.plus(SeedResult other) final StringtoString()Returns a string representation of this record class.inttotal()intupdated()Returns the value of theupdatedrecord component.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
SeedResult
public SeedResult(int created, int updated) Creates an instance of aSeedResultrecord class.- Parameters:
created- the value for thecreatedrecord componentupdated- the value for theupdatedrecord component
-
-
Method Details
-
total
public int total() -
plus
-
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 '=='. -
created
public int created()Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
updated
public int updated()Returns the value of theupdatedrecord component.- Returns:
- the value of the
updatedrecord component
-