Record Class RestoreEngine.Result
java.lang.Object
java.lang.Record
com.breakinblocks.graveless.restore.RestoreEngine.Result
- Enclosing class:
RestoreEngine
public static record RestoreEngine.Result(int restored, int remaining, long xpRestored, boolean recordRemoved)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(int restored, int remaining, long xpRestored, boolean recordRemoved) 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.booleanReturns the value of therecordRemovedrecord component.intReturns the value of theremainingrecord component.intrestored()Returns the value of therestoredrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thexpRestoredrecord component.
-
Constructor Details
-
Result
public Result(int restored, int remaining, long xpRestored, boolean recordRemoved) Creates an instance of aResultrecord class.- Parameters:
restored- the value for therestoredrecord componentremaining- the value for theremainingrecord componentxpRestored- the value for thexpRestoredrecord componentrecordRemoved- the value for therecordRemovedrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
restored
public int restored()Returns the value of therestoredrecord component.- Returns:
- the value of the
restoredrecord component
-
remaining
public int remaining()Returns the value of theremainingrecord component.- Returns:
- the value of the
remainingrecord component
-
xpRestored
public long xpRestored()Returns the value of thexpRestoredrecord component.- Returns:
- the value of the
xpRestoredrecord component
-
recordRemoved
public boolean recordRemoved()Returns the value of therecordRemovedrecord component.- Returns:
- the value of the
recordRemovedrecord component
-