Modifier and Type | Class and Description |
---|---|
class |
AbstractSignal<T>
Handles the machinery of connecting slots to a signal and emitting events to them, without
exposing a public interface for emitting events.
|
class |
Signal<T>
A signal that emits events of type
T . |
class |
UnitSignal
A signal that emits an event with no associated data.
|
Modifier and Type | Method and Description |
---|---|
SignalView<T> |
AbstractValue.changes() |
SignalView<T> |
ValueView.changes()
Returns a signal that is emitted whenever this value changes.
|
<M> SignalView<M> |
SignalView.collect(Function<? super T,M> collector)
Creates a signal that maps the values emitted by this signal through
collector and
emits only the non-null values that are returned. |
<M> SignalView<M> |
AbstractSignal.collect(Function<? super T,M> collector) |
SignalView<T> |
SignalView.filter(Function<? super T,Boolean> pred)
Creates a signal that emits a value only when the supplied filter function returns true.
|
SignalView<T> |
AbstractSignal.filter(Function<? super T,Boolean> pred) |
<M> SignalView<M> |
SignalView.map(Function<? super T,M> func)
Creates a signal that maps this signal via a function.
|
<M> SignalView<M> |
AbstractSignal.map(Function<? super T,M> func) |
Modifier and Type | Method and Description |
---|---|
static <T> ValueView<T> |
Values.asValue(SignalView<T> signal,
T initial)
Returns a view of the supplied signal as a value.
|
static ValueView<Boolean> |
Values.toggler(SignalView<?> signal,
boolean initial)
Creates a boolean value that is toggled every time the supplied signal fires.
|
Copyright © 2017. All rights reserved.