Skip to content

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.

SignalReplay creates one for each expression it follows; the ComputedSignal that Signal.from(value) returns reads it.

ReturnsSignatureSummary
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.

ReturnsSignatureSummary
Tget()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.

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.

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

Report a problem with this page