Bindable

interface Bindable

Allows binding and retrieval of objects using Kotlin operator functions and traditional get/set

Inheritors

Functions

Link copied to clipboard
open fun addAll(objects: List<Any>)
Link copied to clipboard
abstract fun addObject(value: Any): Bindable

Add to entries without binding to a variable name. Implementations must respect the order in which entities were added. This is equivalent to using the default binding name as the key. For example, if you add a Dog to the blackboard without a key, it will be bound to the default binding name "it" and will be the last entry in the list of objects. Equivalent:

Link copied to clipboard
abstract fun bind(key: String, value: Any): Bindable
Link copied to clipboard
open fun bindAll(bindings: Map<String, Any>)
Link copied to clipboard
abstract operator fun plusAssign(pair: <Error class: unknown class><String, Any>)
abstract operator fun plusAssign(value: Any)
open operator fun plusAssign(bindings: Map<String, Any>)
Link copied to clipboard
abstract operator fun set(key: String, value: Any)

Bind a value to a name