Package com.enhancedechest.migration
Record Class DatabaseImportService.Result
java.lang.Object
java.lang.Record
com.enhancedechest.migration.DatabaseImportService.Result
- Enclosing class:
DatabaseImportService
Outcome of an import run: how many rows landed in the destination.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(int players, int chests) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintchests()Returns the value of thechestsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intplayers()Returns the value of theplayersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(int players, int chests) Creates an instance of aResultrecord class.- Parameters:
players- the value for theplayersrecord componentchests- the value for thechestsrecord 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 '=='. -
players
public int players()Returns the value of theplayersrecord component.- Returns:
- the value of the
playersrecord component
-
chests
public int chests()Returns the value of thechestsrecord component.- Returns:
- the value of the
chestsrecord component
-