ObservableMeta

interface ObservableMeta : Meta

An item provider that could be observed and mutated

Functions

equals
Link copied to clipboard
common
abstract operator override fun equals(other: Any?): Boolean
getMeta
Link copied to clipboard
common
open override fun getMeta(name: Name): Meta?
getValue
Link copied to clipboard
common
open override fun getValue(name: Name): Value?
hashCode
Link copied to clipboard
common
abstract override fun hashCode(): Int
invalidate
Link copied to clipboard
common
abstract fun invalidate(name: Name)

Force-send invalidation signal for given name to all listeners

onChange
Link copied to clipboard
common
abstract fun onChange(owner: Any?, callback: Meta.(name: Name) -> Unit)

Add change listener to this meta. Owner is declared to be able to remove listeners later. Listener without owner could not be removed

removeListener
Link copied to clipboard
common
abstract fun removeListener(owner: Any?)

Remove all listeners belonging to given owner

toMeta
Link copied to clipboard
common
open override fun toMeta(): Meta
toString
Link copied to clipboard
common
abstract override fun toString(): String

Properties

items
Link copied to clipboard
common
abstract val items: Map<NameToken, Meta>
value
Link copied to clipboard
common
abstract val value: Value?

Inheritors

ObservableMutableMeta
Link copied to clipboard