Package com.axelor.workflow.migrate
Record Class MigrationInventory.ParkedRunPage
java.lang.Object
java.lang.Record
com.axelor.workflow.migrate.MigrationInventory.ParkedRunPage
- Enclosing class:
MigrationInventory
public static record MigrationInventory.ParkedRunPage(long total, List<ParkedRun> runs)
extends Record
A page of a position's runs, and how many there are in all.
-
Constructor Summary
ConstructorsConstructorDescriptionParkedRunPage(long total, List<ParkedRun> runs) Creates an instance of aParkedRunPagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.runs()Returns the value of therunsrecord component.final StringtoString()Returns a string representation of this record class.longtotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
ParkedRunPage
Creates an instance of aParkedRunPagerecord class.- Parameters:
total- the value for thetotalrecord componentruns- the value for therunsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
total
public long total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
runs
Returns the value of therunsrecord component.- Returns:
- the value of the
runsrecord component
-