StateSubject
A StateSubject is a specialized Subject that also maintains the latest emission as state, retrievable via the value getter.
New values can be emitted to subscribers via the Observer.onNext method.
Properties
Functions
Returns this Subject as an Observable to restrict publishing.
Returns the StateSubject as an ObservableState that therefore cannot be published to.
Returns an observable that will emit values in a possibly asynchronous manner determined by the given block.
Returns an observable that will buffer emissions until the buffer is full, at which point they will be emitted downstream.
Returns an observable that combines the emissions of this observable the given other. The downstream emission is the result of applying the combiner function to the latest emissions of both observables - and are only possible once both this and the other have emitted at least one value.
Returns an observable that combines the emissions of this observable the given others. The downstream emission is the result of applying the combiner function to the latest emissions of both observables - and are only possible once all others have emitted at least one value.
Returns an observable that only emits downstream when the newest emissions is not equal to the previous emission. Emissions will be compared using standard Objects.equals
Returns an observable that only emits downstream when the newest emissions is not equal to the previous emission. Emissions will be compared using the provided isEquals function
Convenience method for converting an observable of nullable items, into an observable of non-nullable items.
Returns an observable that applies the given transform to the source emissions to produce new observables - all emissions from the resulting observables will be emitted downstream.
Transforms the emissions and state of an existing ObservableState instance to a different type. Typically useful for extracting sub-properties of an existing ObservableState.
Convenience method that maps any incoming emission to Unit
Returns an observable that will propagate all source emissions downstream from this observable and from the given other.
Called whenever there has been a new item emitted by the upstream Observable.
Returns an observable that will continually resubscribe until the predicate returns false.
Returns an Observable that will share a single connection to the source Observable (this).
Returns an observable that performs the subscription on the given scheduler
Subscribes the given observer to a single emission of the source.