Modification Cookie Viewable Set
class ModificationCookieViewableSet<E : Any>(backingSet: IMutableViewableSet<E>, val cookieProperty: KMutableProperty0<Boolean>) : IMutableViewableSet<E>
Content copied to clipboard
Constructors
Link copied to clipboard
fun <E : Any> ModificationCookieViewableSet(backingSet: IMutableViewableSet<E>, cookieProperty: KMutableProperty0<Boolean>)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
open override fun advise(lifetime: Lifetime, handler: (IViewableSet.Event<E>) -> 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.
open override fun advise(lifetime: Lifetime, handler: (AddRemove, E) -> Unit)
Content copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard