RdMap

open class RdMap<K : Any, V : Any> : RdReactiveBase, IAsyncViewableMap<K, V> , IMutableViewableMap<K, V>

Constructors

Link copied to clipboard
fun <K : Any, V : Any> RdMap(keySzr: ISerializer<K> = Polymorphic(), valSzr: ISerializer<V> = Polymorphic())

Types

Link copied to clipboard
object Companion : ISerializer<RdMap<*, *>>

Functions

Link copied to clipboard
open override fun advise(lifetime: Lifetime, handler: (IViewableMap.Event<K, V>) -> Unit)
Link copied to clipboard
open fun adviseAddRemove(lifetime: Lifetime, handler: (AddRemove, K, V) -> Unit)
Link copied to clipboard
open override fun adviseOn(    lifetime: Lifetime,     scheduler: IScheduler,     handler: (IViewableMap.Event<K, V>) -> Unit)
Link copied to clipboard
open override fun bind()

Sends child objects to the wire. This method is called after the parent sends this instance to the wire.

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open fun compute(p0: K, p1: BiFunction<in K, in V?, out V?>): V?
Link copied to clipboard
open fun computeIfAbsent(p0: K, p1: Function<in K, out V>): V
Link copied to clipboard
open fun computeIfPresent(p0: K, p1: BiFunction<in K, in V, out V?>): V?
Link copied to clipboard
open override fun containsKey(key: K): Boolean
Link copied to clipboard
open override fun containsValue(value: V): Boolean
Link copied to clipboard
open override fun deepClone(): IRdBindable

Creates a clone of this IRdBindable not bound to any protocol

Link copied to clipboard
open override fun findByRName(rName: RName): RdBindableBase?
Link copied to clipboard
open fun forEach(p0: BiConsumer<in K, in V>)
Link copied to clipboard
open operator override fun get(key: K): V?
Link copied to clipboard
inline fun <T : Any> getOrCreateExtension(name: String, noinline create: () -> T): T
fun <T : Any> getOrCreateExtension(    name: String,     clazz: KClass<T>,     create: () -> T): T
Link copied to clipboard
open fun getOrDefault(key: K, defaultValue: V): V
Link copied to clipboard
operator fun <T : IRdBindable?> T.getValue(thisRef: Any?, property: KProperty<*>): T
operator fun <T : List<IRdBindable?>> T.getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
open override fun identify(identities: IIdentities, id: RdId)

Assigns IDs to this node and its child nodes in the graph.

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open fun merge(    p0: K,     p1: V,     p2: BiFunction<in V, in V, out V?>): V?
Link copied to clipboard
override fun onWireReceived(buffer: AbstractBuffer, dispatchHelper: IRdWireableDispatchHelper)

Callback that wire triggers when it receives messaged

open override fun onWireReceived(    proto: IProtocol,     buffer: AbstractBuffer,     ctx: SerializationCtx,     dispatchHelper: IRdWireableDispatchHelper)
Link copied to clipboard
override fun preBind(    lf: Lifetime,     parent: IRdDynamic,     name: String)

Inserts the node into the object graph under the given parent and assigns the specified name to it. The node will be removed from the graph when the specified lf lifetime is terminated.

Link copied to clipboard
open override fun print(printer: PrettyPrinter)
Link copied to clipboard
open override fun put(key: K, value: V): V?
Link copied to clipboard
open override fun putAll(from: Map<out K, V>)
Link copied to clipboard
open fun putIfAbsent(p0: K, p1: V): V?
Link copied to clipboard
open override fun remove(key: K): V?
open override fun remove(key: K, value: V): Boolean
Link copied to clipboard
open fun replace(p0: K, p1: V): V?
open fun replace(    p0: K,     p1: V,     p2: V): Boolean
Link copied to clipboard
open fun replaceAll(p0: BiFunction<in K, in V, out V>)
Link copied to clipboard
fun synchronizeWith(    lifetime: Lifetime,     otherBindable: RdBindableBase,     accepts: (Any?) -> Boolean = { true })
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun view(lifetime: Lifetime, handler: (Lifetime, Map.Entry<K, V>) -> Unit)
open fun view(lifetime: Lifetime, handler: (Lifetime, K, V) -> Unit)

Properties

Link copied to clipboard
open override var async: Boolean = false

If set to true, local changes to this object can be performed on any thread. Otherwise, local changes can be performed only on the UI thread.

Link copied to clipboard
var bindState: BindState
Link copied to clipboard
open override val change: ISource<IViewableMap.Event<K, V>>
Link copied to clipboard
open val changing: Boolean
Link copied to clipboard
val containingExt: RdExtBase?
Link copied to clipboard
open override val entries: MutableSet<MutableMap.MutableEntry<K, V>>
Link copied to clipboard
val isBound: Boolean
Link copied to clipboard
var isLocalChange: Boolean = false
Link copied to clipboard
open override val keys: MutableSet<K>
Link copied to clipboard
val keySzr: ISerializer<K>
Link copied to clipboard
override var location: RName
Link copied to clipboard
var master: Boolean
Link copied to clipboard
var optimizeNested: Boolean = false
Link copied to clipboard
var parent: IRdDynamic? = null
Link copied to clipboard
open override val protocol: IProtocol?
Link copied to clipboard
open override var rdid: RdId
Link copied to clipboard
open override val serializationContext: SerializationCtx?
Link copied to clipboard
open override val size: Int
Link copied to clipboard
val valSzr: ISerializer<V>
Link copied to clipboard
open override val values: MutableCollection<V>