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 ExternalPatternSinkDetails lastSinkDetails, Deque<ExternalPatternSinkId> pendingSinkIds)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionExternalPatternSnapshot(ResourceList expectedOutputs, ResourceList simulatedIterationInputs, long originalIterationsToSendToSink, long iterationsToSendToSink, long iterationsReceived, boolean interceptedAnythingSinceLastStep, @Nullable ExternalPatternSink.Result lastSinkResult, @Nullable ExternalPatternSinkDetails lastSinkDetails, Deque<ExternalPatternSinkId> pendingSinkIds) 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.@Nullable ExternalPatternSinkDetailsReturns the value of thelastSinkDetailsrecord component.@Nullable ExternalPatternSink.ResultReturns the value of thelastSinkResultrecord component.longReturns the value of theoriginalIterationsToSendToSinkrecord component.Returns the value of thependingSinkIdsrecord 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 ExternalPatternSinkDetails lastSinkDetails, Deque<ExternalPatternSinkId> pendingSinkIds) 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 componentlastSinkDetails- the value for thelastSinkDetailsrecord componentpendingSinkIds- the value for thependingSinkIdsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
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
-
lastSinkDetails
Returns the value of thelastSinkDetailsrecord component.- Returns:
- the value of the
lastSinkDetailsrecord component
-
pendingSinkIds
Returns the value of thependingSinkIdsrecord component.- Returns:
- the value of the
pendingSinkIdsrecord component
-