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 Summary
ConstructorsConstructorDescriptionMenuActionQueueState(int queueLength, boolean paused, boolean running, QueuedMenuAction activeAction, MenuActionDispatchResult lastDispatchResult, int currentSyncId, String currentTitle) Creates an instance of aMenuActionQueueStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveActionrecord component.intReturns the value of thecurrentSyncIdrecord component.Returns the value of thecurrentTitlerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastDispatchResultrecord component.booleanpaused()Returns the value of thepausedrecord component.intReturns the value of thequeueLengthrecord component.booleanrunning()Returns the value of therunningrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MenuActionQueueState
public MenuActionQueueState(int queueLength, boolean paused, boolean running, QueuedMenuAction activeAction, MenuActionDispatchResult lastDispatchResult, int currentSyncId, String currentTitle) Creates an instance of aMenuActionQueueStaterecord class.- Parameters:
queueLength- the value for thequeueLengthrecord componentpaused- the value for thepausedrecord componentrunning- the value for therunningrecord componentactiveAction- the value for theactiveActionrecord componentlastDispatchResult- the value for thelastDispatchResultrecord componentcurrentSyncId- the value for thecurrentSyncIdrecord componentcurrentTitle- the value for thecurrentTitlerecord 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. -
queueLength
public int queueLength()Returns the value of thequeueLengthrecord component.- Returns:
- the value of the
queueLengthrecord component
-
paused
public boolean paused()Returns the value of thepausedrecord component.- Returns:
- the value of the
pausedrecord component
-
running
public boolean running()Returns the value of therunningrecord component.- Returns:
- the value of the
runningrecord component
-
activeAction
Returns the value of theactiveActionrecord component.- Returns:
- the value of the
activeActionrecord component
-
lastDispatchResult
Returns the value of thelastDispatchResultrecord component.- Returns:
- the value of the
lastDispatchResultrecord component
-
currentSyncId
public int currentSyncId()Returns the value of thecurrentSyncIdrecord component.- Returns:
- the value of the
currentSyncIdrecord component
-
currentTitle
Returns the value of thecurrentTitlerecord component.- Returns:
- the value of the
currentTitlerecord component
-