SimpleDefaultSubject

constructor(defaultValue: R, initialValue: T? = defaultValue)

Parameters

T

the type of value to expect.

R

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

defaultValue

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

initialValue

The initial value of T.