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 voidaddObserver(O observer)Adding an observer to a RigidObservable is a no-op.Subscriptionobserve(O observer)Returns an empty Subscription (Subscription.EMPTY).voidremoveObserver(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:
addObserverin interfaceObservable<O>
-
removeObserver
public final void removeObserver(O observer)
Removing an observer from a RigidObservable is a no-op.- Specified by:
removeObserverin interfaceObservable<O>
-
observe
public final Subscription observe(O observer)
Returns an empty Subscription (Subscription.EMPTY).- Specified by:
observein interfaceObservable<O>
-
-