Package org.reactfx
Class RigidObservable<O>
- java.lang.Object
-
- org.reactfx.RigidObservable<O>
-
- Type Parameters:
O
- observer type accepted by this Observable
- All Implemented Interfaces:
Observable<O>
- Direct Known Subclasses:
ConstVal
,EventStreams.Never
public abstract class RigidObservable<O> extends java.lang.Object implements Observable<O>
An observable that does not change and does not produce any notifications.
-
-
Constructor Summary
Constructors Constructor Description RigidObservable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addObserver(O observer)
Adding an observer to a RigidObservable is a no-op.Subscription
observe(O observer)
Returns an empty Subscription (Subscription.EMPTY
).void
removeObserver(O observer)
Removing an observer from a RigidObservable is a no-op.
-
-
-
Method Detail
-
addObserver
public final void addObserver(O observer)
Adding an observer to a RigidObservable is a no-op.- Specified by:
addObserver
in interfaceObservable<O>
-
removeObserver
public final void removeObserver(O observer)
Removing an observer from a RigidObservable is a no-op.- Specified by:
removeObserver
in interfaceObservable<O>
-
observe
public final Subscription observe(O observer)
Returns an empty Subscription (Subscription.EMPTY
).- Specified by:
observe
in interfaceObservable<O>
-
-