Top Fields Constructors Methods
org.reactfx.value

pack-priv Class OrElseConst<T>

extends ValBase<T>
Class Inheritance
Imports
javafx.beans.value.ObservableValue, org.reactfx.Subscription

Field Summary

Modifier and TypeField and Description
private final T
private final ObservableValue<? extends T>

Constructor Summary

AccessConstructor and Description
pack-priv
OrElseConst(ObservableValue<? extends T> src, T other)

Method Summary

Modifier and TypeMethod and Description
protected T
protected Subscription
connect()

Implements abstract org.reactfx.value.ValBase.connect.

Implementation of this method should start observing inputs.

Inherited from org.reactfx.value.ValBase:
getValueinvalidatenewObserverobserveInputs

Field Detail

otherback to summary
private final T other
srcback to summary
private final ObservableValue<? extends T> src

Constructor Detail

OrElseConstback to summary
pack-priv OrElseConst(ObservableValue<? extends T> src, T other)

Method Detail

computeValueback to summary
protected T computeValue()

Implements abstract org.reactfx.value.ValBase.computeValue.

Annotations
@Override
connectback to summary
protected Subscription connect()

Implements abstract org.reactfx.value.ValBase.connect.

Doc from org.reactfx.value.ValBase.connect.

Implementation of this method should start observing inputs. If the value of this Val may change as a result of input change, the corresponding input observer should call invalidate() to notify observers of this Val. By the time of calling invalidate(), the input observer must have already updated any internal state of this Val, so that a subsequent call to computeValue() returns the current value of this Val.

Annotations
@Override