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 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 a ExternalPatternSnapshot record class.
      Parameters:
      expectedOutputs - the value for the expectedOutputs record component
      simulatedIterationInputs - the value for the simulatedIterationInputs record component
      originalIterationsToSendToSink - the value for the originalIterationsToSendToSink record component
      iterationsToSendToSink - the value for the iterationsToSendToSink record component
      iterationsReceived - the value for the iterationsReceived record component
      interceptedAnythingSinceLastStep - the value for the interceptedAnythingSinceLastStep record component
      lastSinkResult - the value for the lastSinkResult record component
      lastSinkResultKey - the value for the lastSinkResultKey record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • expectedOutputs

      public ResourceList expectedOutputs()
      Returns the value of the expectedOutputs record component.
      Returns:
      the value of the expectedOutputs record component
    • simulatedIterationInputs

      public ResourceList simulatedIterationInputs()
      Returns the value of the simulatedIterationInputs record component.
      Returns:
      the value of the simulatedIterationInputs record component
    • originalIterationsToSendToSink

      public long originalIterationsToSendToSink()
      Returns the value of the originalIterationsToSendToSink record component.
      Returns:
      the value of the originalIterationsToSendToSink record component
    • iterationsToSendToSink

      public long iterationsToSendToSink()
      Returns the value of the iterationsToSendToSink record component.
      Returns:
      the value of the iterationsToSendToSink record component
    • iterationsReceived

      public long iterationsReceived()
      Returns the value of the iterationsReceived record component.
      Returns:
      the value of the iterationsReceived record component
    • interceptedAnythingSinceLastStep

      public boolean interceptedAnythingSinceLastStep()
      Returns the value of the interceptedAnythingSinceLastStep record component.
      Returns:
      the value of the interceptedAnythingSinceLastStep record component
    • lastSinkResult

      @Nullable public ExternalPatternSink.Result lastSinkResult()
      Returns the value of the lastSinkResult record component.
      Returns:
      the value of the lastSinkResult record component
    • lastSinkResultKey

      @Nullable public ExternalPatternSinkKey lastSinkResultKey()
      Returns the value of the lastSinkResultKey record component.
      Returns:
      the value of the lastSinkResultKey record component