BaseDefaultObservable

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


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

Parameters

T

the type of value to expect.

R

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

observation

The ObservationDefault to handle observing the value.