Record Class TaskSnapshot.ExternalPatternSnapshot
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.api.autocrafting.task.TaskSnapshot.ExternalPatternSnapshot
- Enclosing class:
TaskSnapshot
public static record TaskSnapshot.ExternalPatternSnapshot(ResourceList expectedOutputs, ResourceList simulatedIterationInputs, long originalIterationsToSendToSink, long iterationsToSendToSink, long iterationsReceived, boolean interceptedAnythingSinceLastStep, @Nullable ExternalPatternSink.Result lastSinkResult, @Nullable ExternalPatternSinkKey lastSinkResultKey)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionExternalPatternSnapshot(ResourceList expectedOutputs, ResourceList simulatedIterationInputs, long originalIterationsToSendToSink, long iterationsToSendToSink, long iterationsReceived, boolean interceptedAnythingSinceLastStep, ExternalPatternSink.Result lastSinkResult, ExternalPatternSinkKey lastSinkResultKey) Creates an instance of aExternalPatternSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedOutputsrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinterceptedAnythingSinceLastSteprecord component.longReturns the value of theiterationsReceivedrecord component.longReturns the value of theiterationsToSendToSinkrecord component.Returns the value of thelastSinkResultrecord component.Returns the value of thelastSinkResultKeyrecord component.longReturns the value of theoriginalIterationsToSendToSinkrecord component.Returns the value of thesimulatedIterationInputsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExternalPatternSnapshot
public ExternalPatternSnapshot(ResourceList expectedOutputs, ResourceList simulatedIterationInputs, long originalIterationsToSendToSink, long iterationsToSendToSink, long iterationsReceived, boolean interceptedAnythingSinceLastStep, @Nullable ExternalPatternSink.Result lastSinkResult, @Nullable ExternalPatternSinkKey lastSinkResultKey) Creates an instance of aExternalPatternSnapshotrecord class.- Parameters:
expectedOutputs- the value for theexpectedOutputsrecord componentsimulatedIterationInputs- the value for thesimulatedIterationInputsrecord componentoriginalIterationsToSendToSink- the value for theoriginalIterationsToSendToSinkrecord componentiterationsToSendToSink- the value for theiterationsToSendToSinkrecord componentiterationsReceived- the value for theiterationsReceivedrecord componentinterceptedAnythingSinceLastStep- the value for theinterceptedAnythingSinceLastSteprecord componentlastSinkResult- the value for thelastSinkResultrecord componentlastSinkResultKey- the value for thelastSinkResultKeyrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
expectedOutputs
Returns the value of theexpectedOutputsrecord component.- Returns:
- the value of the
expectedOutputsrecord component
-
simulatedIterationInputs
Returns the value of thesimulatedIterationInputsrecord component.- Returns:
- the value of the
simulatedIterationInputsrecord component
-
originalIterationsToSendToSink
public long originalIterationsToSendToSink()Returns the value of theoriginalIterationsToSendToSinkrecord component.- Returns:
- the value of the
originalIterationsToSendToSinkrecord component
-
iterationsToSendToSink
public long iterationsToSendToSink()Returns the value of theiterationsToSendToSinkrecord component.- Returns:
- the value of the
iterationsToSendToSinkrecord component
-
iterationsReceived
public long iterationsReceived()Returns the value of theiterationsReceivedrecord component.- Returns:
- the value of the
iterationsReceivedrecord component
-
interceptedAnythingSinceLastStep
public boolean interceptedAnythingSinceLastStep()Returns the value of theinterceptedAnythingSinceLastSteprecord component.- Returns:
- the value of the
interceptedAnythingSinceLastSteprecord component
-
lastSinkResult
Returns the value of thelastSinkResultrecord component.- Returns:
- the value of the
lastSinkResultrecord component
-
lastSinkResultKey
Returns the value of thelastSinkResultKeyrecord component.- Returns:
- the value of the
lastSinkResultKeyrecord component
-