Record Class Control.ExecutionContext
java.lang.Object
java.lang.Record
org.dellroad.javabox.Control.ExecutionContext
- Record Components:
containerContext- The associatedControl.ContainerContextcontext- TheControl's per-execution private state
- Enclosing interface:
Control
public static record Control.ExecutionContext(Control.ContainerContext containerContext, Object context)
extends Record
The per-execution context associated with a
Control.
This context is valid as long as the associated script execution has not finished.
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionContext(Control.ContainerContext containerContext, Object context) Creates an instance of aExecutionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainerContextrecord component.context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExecutionContext
Creates an instance of aExecutionContextrecord class.- Parameters:
containerContext- the value for thecontainerContextrecord componentcontext- the value for thecontextrecord 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). -
containerContext
Returns the value of thecontainerContextrecord component.- Returns:
- the value of the
containerContextrecord component
-
context
-