Package org.jsignal.rx
Class Signal<T>
java.lang.Object
org.jsignal.rx.Signal<T>
- All Implemented Interfaces:
Consumer<T>
,Supplier<T>
,Acceptable<T>
,Mutateable<T>
,SignalLike<T>
,Trackable
,SkipMemo
- Direct Known Subclasses:
AtomicSignal
The core reactive primitive. Wraps another object and adds the ability for access and mutation of the value to be
automatically tracked.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface org.jsignal.rx.SkipMemo
SkipMemo.SkipSupplier<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jsignal.rx.interfaces.Acceptable
accept
Methods inherited from interface org.jsignal.rx.interfaces.Mutateable
modify
-
Field Details
-
value
-
thread
-
equals
-
clone
-
effects
-
-
Constructor Details
-
Signal
-
-
Method Details
-
getThread
- Specified by:
getThread
in interfaceSignalLike<T>
-
track
public void track() -
untrack
public void untrack() -
get
-
transform
- Specified by:
transform
in interfaceAcceptable<T>
-
mutate
- Specified by:
mutate
in interfaceMutateable<T>
-
runEffects
protected void runEffects() -
empty
-
create
-
builder
-
builder
-