containsItem

abstract fun containsItem(item: T): Observable<Boolean>

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.

Return

An observable emitting true if the item is in the set, false otherwise.

Parameters

item

The item whose membership status is to be observed.