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 aExternalPatternSnapshot
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexpectedOutputs
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theinterceptedAnythingSinceLastStep
record component.long
Returns the value of theiterationsReceived
record component.long
Returns the value of theiterationsToSendToSink
record component.Returns the value of thelastSinkResult
record component.Returns the value of thelastSinkResultKey
record component.long
Returns the value of theoriginalIterationsToSendToSink
record component.Returns the value of thesimulatedIterationInputs
record component.final String
toString()
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 aExternalPatternSnapshot
record class.- Parameters:
expectedOutputs
- the value for theexpectedOutputs
record componentsimulatedIterationInputs
- the value for thesimulatedIterationInputs
record componentoriginalIterationsToSendToSink
- the value for theoriginalIterationsToSendToSink
record componentiterationsToSendToSink
- the value for theiterationsToSendToSink
record componentiterationsReceived
- the value for theiterationsReceived
record componentinterceptedAnythingSinceLastStep
- the value for theinterceptedAnythingSinceLastStep
record componentlastSinkResult
- the value for thelastSinkResult
record componentlastSinkResultKey
- the value for thelastSinkResultKey
record 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 theexpectedOutputs
record component.- Returns:
- the value of the
expectedOutputs
record component
-
simulatedIterationInputs
Returns the value of thesimulatedIterationInputs
record component.- Returns:
- the value of the
simulatedIterationInputs
record component
-
originalIterationsToSendToSink
public long originalIterationsToSendToSink()Returns the value of theoriginalIterationsToSendToSink
record component.- Returns:
- the value of the
originalIterationsToSendToSink
record component
-
iterationsToSendToSink
public long iterationsToSendToSink()Returns the value of theiterationsToSendToSink
record component.- Returns:
- the value of the
iterationsToSendToSink
record component
-
iterationsReceived
public long iterationsReceived()Returns the value of theiterationsReceived
record component.- Returns:
- the value of the
iterationsReceived
record component
-
interceptedAnythingSinceLastStep
public boolean interceptedAnythingSinceLastStep()Returns the value of theinterceptedAnythingSinceLastStep
record component.- Returns:
- the value of the
interceptedAnythingSinceLastStep
record component
-
lastSinkResult
Returns the value of thelastSinkResult
record component.- Returns:
- the value of the
lastSinkResult
record component
-
lastSinkResultKey
Returns the value of thelastSinkResultKey
record component.- Returns:
- the value of the
lastSinkResultKey
record component
-