Record Class MenuActionQueueState

java.lang.Object
java.lang.Record
com.render.api.MenuActionQueueState

public record MenuActionQueueState(int queueLength, boolean paused, boolean running, QueuedMenuAction activeAction, MenuActionDispatchResult lastDispatchResult, int currentSyncId, String currentTitle) extends Record
Public queue state snapshot exposed to virtual menu sessions.
  • Constructor Details

    • MenuActionQueueState

      public MenuActionQueueState(int queueLength, boolean paused, boolean running, QueuedMenuAction activeAction, MenuActionDispatchResult lastDispatchResult, int currentSyncId, String currentTitle)
      Creates an instance of a MenuActionQueueState record class.
      Parameters:
      queueLength - the value for the queueLength record component
      paused - the value for the paused record component
      running - the value for the running record component
      activeAction - the value for the activeAction record component
      lastDispatchResult - the value for the lastDispatchResult record component
      currentSyncId - the value for the currentSyncId record component
      currentTitle - the value for the currentTitle 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 the compare method from their corresponding wrapper classes.
      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.
    • queueLength

      public int queueLength()
      Returns the value of the queueLength record component.
      Returns:
      the value of the queueLength record component
    • paused

      public boolean paused()
      Returns the value of the paused record component.
      Returns:
      the value of the paused record component
    • running

      public boolean running()
      Returns the value of the running record component.
      Returns:
      the value of the running record component
    • activeAction

      public QueuedMenuAction activeAction()
      Returns the value of the activeAction record component.
      Returns:
      the value of the activeAction record component
    • lastDispatchResult

      public MenuActionDispatchResult lastDispatchResult()
      Returns the value of the lastDispatchResult record component.
      Returns:
      the value of the lastDispatchResult record component
    • currentSyncId

      public int currentSyncId()
      Returns the value of the currentSyncId record component.
      Returns:
      the value of the currentSyncId record component
    • currentTitle

      public String currentTitle()
      Returns the value of the currentTitle record component.
      Returns:
      the value of the currentTitle record component