Package app.ductape.sdk.database.types
Record Class MigrationTypes.MigrationStatusResult
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.MigrationTypes.MigrationStatusResult
- Enclosing class:
- MigrationTypes
-
Constructor Summary
ConstructorsConstructorDescriptionMigrationStatusResult(int total, int completed, int pending, MigrationTypes.MigrationHistory lastApplied, List<String> pendingMigrations, List<String> appliedMigrations) Creates an instance of aMigrationStatusResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappliedMigrationsrecord component.intReturns the value of thecompletedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastAppliedrecord component.intpending()Returns the value of thependingrecord component.Returns the value of thependingMigrationsrecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
MigrationStatusResult
public MigrationStatusResult(int total, int completed, int pending, MigrationTypes.MigrationHistory lastApplied, List<String> pendingMigrations, List<String> appliedMigrations) Creates an instance of aMigrationStatusResultrecord class.- Parameters:
total- the value for thetotalrecord componentcompleted- the value for thecompletedrecord componentpending- the value for thependingrecord componentlastApplied- the value for thelastAppliedrecord componentpendingMigrations- the value for thependingMigrationsrecord componentappliedMigrations- the value for theappliedMigrationsrecord 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 int total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
completed
public int completed()Returns the value of thecompletedrecord component.- Returns:
- the value of the
completedrecord component
-
pending
public int pending()Returns the value of thependingrecord component.- Returns:
- the value of the
pendingrecord component
-
lastApplied
Returns the value of thelastAppliedrecord component.- Returns:
- the value of the
lastAppliedrecord component
-
pendingMigrations
Returns the value of thependingMigrationsrecord component.- Returns:
- the value of the
pendingMigrationsrecord component
-
appliedMigrations
Returns the value of theappliedMigrationsrecord component.- Returns:
- the value of the
appliedMigrationsrecord component
-