Package com.enhancedechest.migration
Record Class PlayerVaultsXMigrationService.Result
java.lang.Object
java.lang.Record
com.enhancedechest.migration.PlayerVaultsXMigrationService.Result
- Enclosing class:
PlayerVaultsXMigrationService
public static record PlayerVaultsXMigrationService.Result(int playersMigrated, int vaultsMigrated, int vaultsSkipped, int playersFailed)
extends Record
Outcome of a migration run.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(int playersMigrated, int vaultsMigrated, int vaultsSkipped, int playersFailed) Creates an instance of aResultrecord 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.intReturns the value of theplayersFailedrecord component.intReturns the value of theplayersMigratedrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thevaultsMigratedrecord component.intReturns the value of thevaultsSkippedrecord component.
-
Constructor Details
-
Result
public Result(int playersMigrated, int vaultsMigrated, int vaultsSkipped, int playersFailed) Creates an instance of aResultrecord class.- Parameters:
playersMigrated- the value for theplayersMigratedrecord componentvaultsMigrated- the value for thevaultsMigratedrecord componentvaultsSkipped- the value for thevaultsSkippedrecord componentplayersFailed- the value for theplayersFailedrecord 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 '=='. -
playersMigrated
public int playersMigrated()Returns the value of theplayersMigratedrecord component.- Returns:
- the value of the
playersMigratedrecord component
-
vaultsMigrated
public int vaultsMigrated()Returns the value of thevaultsMigratedrecord component.- Returns:
- the value of the
vaultsMigratedrecord component
-
vaultsSkipped
public int vaultsSkipped()Returns the value of thevaultsSkippedrecord component.- Returns:
- the value of the
vaultsSkippedrecord component
-
playersFailed
public int playersFailed()Returns the value of theplayersFailedrecord component.- Returns:
- the value of the
playersFailedrecord component
-