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
An observable that does not change and does not produce any notifications.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addObserver
(O observer) Adding an observer to a RigidObservable is a no-op.final Subscription
Returns an empty Subscription (Subscription.EMPTY
).final void
removeObserver
(O observer) Removing an observer from a RigidObservable is a no-op.
-
Constructor Details
-
RigidObservable
public RigidObservable()
-
-
Method Details
-
addObserver
Adding an observer to a RigidObservable is a no-op.- Specified by:
addObserver
in interfaceObservable<O>
-
removeObserver
Removing an observer from a RigidObservable is a no-op.- Specified by:
removeObserver
in interfaceObservable<O>
-
observe
Returns an empty Subscription (Subscription.EMPTY
).- Specified by:
observe
in interfaceObservable<O>
-