Pool

interface Pool<in T>

A collection of items that only exposes add/remove semantics that is used for observers.

Inheritors

Functions

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

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.