Observable Mutable Set
A mutable observable set implementation, which allows for observing changes to the set and provides notifications when its contents are modified. This class supports addition, removal, and observation of modifications to the set.
Type Parameters
The type of elements maintained by this set.
Types
Properties
Functions
Replaces the contents of this set with items. The observers of the set are notified once, if the contents change, and the observers of an item only if the presence of that item changes.
Combines the content of an ObservableSet into a single observable by applying a mapping function to each element and aggregating the results. This function generates a single observable that emits every time the underlying set of contents is changed, or some of the values (which are in turn observables) emit a changes, triggering the re-evaluation of the aggregation function.
Observes the membership status of a specific item in the set. The returned observable will emit true if the item is a member of the set, and false otherwise. Emits updates whenever the membership status changes.
Retrieves the current value of the observable if present, or null if no value is available.
Transforms an ObservableSet of type T into a single Observable of type arrow.core.Option<O> by fusing the individual observables obtained from each item in the set.
Converts this ObservableSet of observables into a unique observable that emits when either this set would have changed (addition/removal of members) or one of its members emits a value.
Combines the current observable with another observable, producing a new observable that emits values derived by applying the provided merge function to the current values of both observables.
Registers callback to be invoked with every new value of this observable, and right away with the current one if notifyOnRegistration.
Maps the current value of this Observable to an inner observable through transform, and mirrors the inner observable of the most recent value only: whenever this observable emits, the previous inner observable is unsubscribed and the new one is followed.
Combines this observable set with another, producing a new observable set that represents the union of both sets.