ObservablePool

interface ObservablePool<T> : Pool<T>

A Pool that notifies of changes to its contents.

Inheritors

Properties

Link copied to clipboard
abstract val changed: Pool<PoolObserver<T>>

Notified when any item is added/removed from the Pool

Inherited functions

Link copied to clipboard
fun <T, V> Pool<T>.map(by: (V) -> T): Pool<V>

Creates a new Pool that is based on another of a different type.

Link copied to clipboard
abstract operator fun minusAssign(item: T)

Remove item from the collection

Link copied to clipboard
abstract operator fun plusAssign(item: T)

Add item to the collection