rd-framework / com.jetbrains.rd.framework.impl / RdList

RdList

class RdList<V : Any> : RdReactiveBase

Constructors

<init>

RdList(valSzr: ISerializer<V> = Polymorphic<V>())

Properties

optimizeNested

var optimizeNested: Boolean

valSzr

val valSzr: ISerializer<V>

Inherited Properties

async

open var async: Boolean

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.

defaultScheduler

val defaultScheduler: <ERROR CLASS>

isLocalChange

var isLocalChange: Boolean

master

var master: Boolean

serializers

val serializers: ISerializers

wire

val wire: IWire

wireScheduler

open val wireScheduler: <ERROR CLASS>

Scheduler on which wire invokes callback onWireReceived. Default is the same as protocol's one.

Functions

add

fun add(element: V): <ERROR CLASS>
fun add(index: Int, element: V): <ERROR CLASS>

addAll

fun addAll(index: Int, elements: Collection<V>): Boolean
fun addAll(elements: Collection<V>): Boolean

advise

fun advise(lifetime: <ERROR CLASS>, handler: (<ERROR CLASS><V>) -> Unit): Unit

adviseOn

fun adviseOn(lifetime: <ERROR CLASS>, scheduler: <ERROR CLASS>, handler: (<ERROR CLASS><V>) -> Unit): Unit

clear

fun clear(): <ERROR CLASS>

deepClone

fun deepClone(): IRdBindable

init

fun init(lifetime: <ERROR CLASS>): Unit

iterator

fun iterator(): MutableListIterator<V>

listIterator

fun listIterator(): MutableListIterator<V>
fun listIterator(index: Int): MutableListIterator<V>

onWireReceived

fun onWireReceived(buffer: AbstractBuffer): Unit

Callback that wire triggers when it receives messaged

print

fun print(printer: <ERROR CLASS>): Unit

remove

fun remove(element: V): Boolean

removeAll

fun removeAll(elements: Collection<V>): Boolean

removeAt

fun removeAt(index: Int): V

retainAll

fun retainAll(elements: Collection<V>): Boolean

set

fun set(index: Int, element: V): V

Inherited Functions

assertBound

fun assertBound(): Unit

assertThreading

fun assertThreading(): Unit

Companion Object Properties

versionedFlagShift

const val versionedFlagShift: Int

Companion Object Functions

read

fun <V : Any> read(ctx: SerializationCtx, buffer: AbstractBuffer, valSzr: ISerializer<V>): RdList<V>

write

fun write(ctx: SerializationCtx, buffer: AbstractBuffer, value: RdList<*>): Unit

Extension Functions

bind

fun <T : IRdBindable?> T.bind(lf: <ERROR CLASS>, parent: IRdDynamic, name: String): Unit?

deepClonePolymorphic

fun <T> T.deepClonePolymorphic(): T

identify

fun <T : IRdBindable?> T.identify(identities: IIdentities, ids: RdId): Unit?

static

fun <T : RdBindableBase> T.static(id: Int): T

withId

fun <T : RdBindableBase> T.withId(id: RdId): T

withIdFromName

fun <T : RdBindableBase> T.withIdFromName(name: String): T