Interface LocalRef<T>
- Type Parameters:
T- the type of the local variable - MUST be concrete
public interface LocalRef<T>
Represents a reference to a local variable.
Specialised variants are provided in the same package for all primitive types.
Do not store
LocalRef instances - their lifecycle is an implementation detail.
They will be valid throughout the handler method they are passed to, but no other guarantees are made.
Do not create custom LocalRef implementations - methods may be added in the future.-
Method Summary
-
Method Details
-
get
T get()Gets the current value of the variable. This may change between calls, even in the same handler method.- Returns:
- the variable's current value
-
set
Sets the value of the variable. This value will be written back to the target method.- Parameters:
value- a new value for the variable
-