BaseDefaultObservable

constructor(observation: ObservationDefault<R, T?>)

Parameters

observation

The ObservationDefault to handle observing the value.

Type Parameters

T

the type of value to expect.

R

the type of result to expect. Must be a subclass of T


constructor(defaultValue: R, initialValue: ObservableOptional.Value<T?>)

Constructor

Parameters

defaultValue

The default value of R to return if the current value is ObservableOptional.Nothing or ObservableOptional.Value containing null.

initialValue

A Value of T to use as the initial value