Record Class CapturedContext
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.context.CapturedContext
public record CapturedContext(QInstance qInstance, QSession qSession, QBackendTransaction qBackendTransaction, Stack<AbstractActionInput> actionStack)
extends Record
record containing the values managed by QContext.
-
Constructor Summary
ConstructorsConstructorDescriptionCapturedContext
(QInstance qInstance, QSession qSession) Simpler constructorCapturedContext
(QInstance qInstance, QSession qSession, QBackendTransaction qBackendTransaction, Stack<AbstractActionInput> actionStack) Creates an instance of aCapturedContext
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionStack
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theqBackendTransaction
record component.Returns the value of theqInstance
record component.qSession()
Returns the value of theqSession
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CapturedContext
-
CapturedContext
public CapturedContext(QInstance qInstance, QSession qSession, QBackendTransaction qBackendTransaction, Stack<AbstractActionInput> actionStack) Creates an instance of aCapturedContext
record class.- Parameters:
qInstance
- the value for theqInstance
record componentqSession
- the value for theqSession
record componentqBackendTransaction
- the value for theqBackendTransaction
record componentactionStack
- the value for theactionStack
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
qInstance
Returns the value of theqInstance
record component.- Returns:
- the value of the
qInstance
record component
-
qSession
Returns the value of theqSession
record component.- Returns:
- the value of the
qSession
record component
-
qBackendTransaction
Returns the value of theqBackendTransaction
record component.- Returns:
- the value of the
qBackendTransaction
record component
-
actionStack
Returns the value of theactionStack
record component.- Returns:
- the value of the
actionStack
record component
-