MirrorableMapListener

interface MirrorableMapListener<K, V>

A MirrorableMap listener.

Can be registered to a MirrorableMap to receive callbacks when the entries in the map change.

Functions

Link copied to clipboard
abstract fun onClear()

Invoked when the map is cleared.

Link copied to clipboard
abstract fun onPut(key: K, value: V)

Invoked when a single entry is put to the map.

Link copied to clipboard
abstract fun onPutAll(from: Map<out K, V>)

Invoked when multiple map entries are put to the map.

Link copied to clipboard
abstract fun onRemove(key: K)

Invoked when a single entry is removed from the map.

Link copied to clipboard
abstract fun onRemoveAll(keys: Collection<K>)

Invoked when a collection of entries are removed from the map.

Link copied to clipboard
abstract fun onRetainAll(keys: Collection<K>)

Invoked when a collection of entries is retained in the map.

Inheritors

Link copied to clipboard