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 aCapturedContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionStackrecord 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 theqBackendTransactionrecord component.Returns the value of theqInstancerecord component.qSession()Returns the value of theqSessionrecord component.final StringtoString()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 aCapturedContextrecord class.- Parameters:
qInstance- the value for theqInstancerecord componentqSession- the value for theqSessionrecord componentqBackendTransaction- the value for theqBackendTransactionrecord componentactionStack- the value for theactionStackrecord 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 theqInstancerecord component.- Returns:
- the value of the
qInstancerecord component
-
qSession
Returns the value of theqSessionrecord component.- Returns:
- the value of the
qSessionrecord component
-
qBackendTransaction
Returns the value of theqBackendTransactionrecord component.- Returns:
- the value of the
qBackendTransactionrecord component
-
actionStack
Returns the value of theactionStackrecord component.- Returns:
- the value of the
actionStackrecord component
-