Package com.enhancedechest.migration
Record Class CustomEnderChestMigrationService.Result
java.lang.Object
java.lang.Record
com.enhancedechest.migration.CustomEnderChestMigrationService.Result
- Enclosing class:
CustomEnderChestMigrationService
public static record CustomEnderChestMigrationService.Result(int playersMigrated, int playersSkipped, int playersFailed)
extends Record
Outcome of a migration run.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(int playersMigrated, int playersSkipped, 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.intReturns the value of theplayersSkippedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(int playersMigrated, int playersSkipped, int playersFailed) Creates an instance of aResultrecord class.- Parameters:
playersMigrated- the value for theplayersMigratedrecord componentplayersSkipped- the value for theplayersSkippedrecord 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
-
playersSkipped
public int playersSkipped()Returns the value of theplayersSkippedrecord component.- Returns:
- the value of the
playersSkippedrecord component
-
playersFailed
public int playersFailed()Returns the value of theplayersFailedrecord component.- Returns:
- the value of the
playersFailedrecord component
-