IViewable Set
interface IViewableSet<T : Any> : Set<T> , IViewable<T> , ISource<IViewableSet.Event<T>>
Content copied to clipboard
A set allowing its contents to be observed.
Types
Functions
Link copied to clipboard
abstract fun advise(lifetime: Lifetime, handler: (IViewableSet.Event<T>) -> Unit)
Content copied to clipboard
Adds an event subscription. Every time an event occurs, the handler is called, receiving an instance of the event. The subscription is removed when the given lifetime expires.
Adds a subscription for additions and removals of set elements. When the subscription is initially added, handler is called with AddRemove.Add events for all elements currently in the set.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Properties
Inheritors
Extensions
Link copied to clipboard
fun <T : Any> IViewableSet<T>.createIsEmpty(lifetime: Lifetime): IPropertyView<Boolean>
Content copied to clipboard
Link copied to clipboard
fun <T : Any> IViewableSet<T>.createIsNotEmpty(lifetime: Lifetime): IPropertyView<Boolean>
Content copied to clipboard