Record Class TaskSnapshot.InternalPatternSnapshot
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.api.autocrafting.task.TaskSnapshot.InternalPatternSnapshot
- Enclosing class:
TaskSnapshot
public static record TaskSnapshot.InternalPatternSnapshot(long originalIterationsRemaining, long iterationsRemaining)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInternalPatternSnapshot(long originalIterationsRemaining, long iterationsRemaining) Creates an instance of aInternalPatternSnapshotrecord 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.longReturns the value of theiterationsRemainingrecord component.longReturns the value of theoriginalIterationsRemainingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InternalPatternSnapshot
public InternalPatternSnapshot(long originalIterationsRemaining, long iterationsRemaining) Creates an instance of aInternalPatternSnapshotrecord class.- Parameters:
originalIterationsRemaining- the value for theoriginalIterationsRemainingrecord componentiterationsRemaining- the value for theiterationsRemainingrecord 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. -
originalIterationsRemaining
public long originalIterationsRemaining()Returns the value of theoriginalIterationsRemainingrecord component.- Returns:
- the value of the
originalIterationsRemainingrecord component
-
iterationsRemaining
public long iterationsRemaining()Returns the value of theiterationsRemainingrecord component.- Returns:
- the value of the
iterationsRemainingrecord component
-