Rd Per Context Map
class RdPerContextMap<K : Any, V : RdBindableBase> : RdReactiveBase, IPerContextMap<K, V> , IViewableMap<K, V>
Content copied to clipboard
Constructors
Link copied to clipboard
fun <K : Any, V : RdBindableBase> RdPerContextMap(context: RdContext<K>, valueFactory: (Boolean) -> V)
Content copied to clipboard
Types
Functions
Link copied to clipboard
open override fun adviseAddRemove(lifetime: Lifetime, handler: (AddRemove, K, V) -> Unit)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Creates a clone of this IRdBindable not bound to any protocol
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets the value associated with current context value, equivalent to get(context.value) If the context doesn't have a value set, or contexts's protocol value set does not contain the current context value, this will throw an exception
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Assigns IDs to this node and its child nodes in the graph.
Link copied to clipboard
override fun onWireReceived(buffer: AbstractBuffer, dispatchHelper: IRdWireableDispatchHelper)
Content copied to clipboard
Callback that wire triggers when it receives messaged
open override fun onWireReceived( proto: IProtocol, buffer: AbstractBuffer, ctx: SerializationCtx, dispatchHelper: IRdWireableDispatchHelper)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun synchronizeWith( lifetime: Lifetime, otherBindable: RdBindableBase, accepts: (Any?) -> Boolean = { true })
Content copied to clipboard