SignalReplayBinding
final class SignalReplayBinding<T>
Implements: Supplier<T>
Package: dev.joid.lib.signal.replay · Module: core · Source: SignalReplayBinding.java
Supplier that computes again, from bytecode, the argument of one setter call after the signals it read change.
Description
Section titled “Description”SignalReplay creates one for each expression it follows; the ComputedSignal that Signal.from(value) returns reads it.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| SignalReplayBinding(SignalReplayCall call, SignalReplayMatch match, List<Signal<?>> readList, T value) | Creates the supplier of the call call, matched by match, that read the signals of readList and gave value. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
T | get() | Returns the value of the expression: the value received by the setter on the first read in the same change, then the result of the replay. |
Creation details
Section titled “Creation details”SignalReplayBinding
Section titled “SignalReplayBinding”SignalReplayBinding(SignalReplayCall call, SignalReplayMatch match, List<Signal<?>> readList, T value)
Creates the supplier of the call call, matched by match, that read the signals of readList and gave value.
Method details
Section titled “Method details”T get()
Throws:
SignalReplayException: …
Returns the value of the expression: the value received by the setter on the first read in the same change, then the result of the replay. When the replay fails, it keeps the last value and prints the dev warning of the line.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
