Top Description Fields Constructors Methods
org.reactfx

public abstract Class ProxyObservable<O, P, U extends Observable<P>>

extends Object
implements Observable<O>
Class Inheritance
All Implemented Interfaces
org.reactfx.Observable
Known Direct Subclasses
org.reactfx.value.ProxyVal
Type Parameters
<O>
observer type accepted by this Observable
<P>
observer type accepted by the underlying Observable
<U>
type of the underlying observable to which observers are delegated

An Observable that does not maintain its own collection of observers, but rather adapts and registers every given observer with the underlying Observable

Field Summary

Modifier and TypeField and Description
private final U

Constructor Summary

AccessConstructor and Description
protected
ProxyObservable(U underlying)

Method Summary

Modifier and TypeMethod and Description
protected abstract P

Returns:

observer adapted for the underlying Observable
adaptObserver
(O
observer to be adapted for the underlying Observable
observer
)

Adapts the given observer to observer of the underlying Observable.

public final void
protected final U
public final Subscription
observe(O observer)

Overrides default org.reactfx.Observable.observe.

public final void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

underlyingback to summary
private final U underlying

Constructor Detail

ProxyObservableback to summary
protected ProxyObservable(U underlying)

Method Detail

adaptObserverback to summary
protected abstract P adaptObserver(O observer)

Adapts the given observer to observer of the underlying Observable.

Important Note

It is required that the transformation applied to two observers that are _equal_ yields two adapted observers that are _equal_. In other words, if `o1.equals(o2)`, then it must be the case that `adaptObserver(o1).equals(adaptObserver(o2))`.

Parameters
observer:O

observer to be adapted for the underlying Observable

Returns:P

observer adapted for the underlying Observable

addObserverback to summary
public final void addObserver(O observer)

Implements org.reactfx.Observable.addObserver.

Annotations
@Override
getUnderlyingObservableback to summary
protected final U getUnderlyingObservable()
observeback to summary
public final Subscription observe(O observer)

Overrides default org.reactfx.Observable.observe.

Annotations
@Override
removeObserverback to summary
public final void removeObserver(O observer)

Implements org.reactfx.Observable.removeObserver.

Annotations
@Override