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

RdOptionalProperty

class RdOptionalProperty<T : Any> : RdPropertyBase<T>

Types

Companion

companion object Companion : ISerializer<RdOptionalProperty<*>>

Constructors

<init>

RdOptionalProperty(defaultValue: T, valueSerializer: ISerializer<T> = Polymorphic())
RdOptionalProperty(valueSerializer: ISerializer<T> = Polymorphic())

Properties

property

val property: <ERROR CLASS>

valueOrNull

val valueOrNull: T?

Inherited Properties

change

open val change: <ERROR CLASS><T>

defaultValueChanged

var defaultValueChanged: Boolean

masterVersion

var masterVersion: Int

optimizeNested

var optimizeNested: Boolean

valueSerializer

val valueSerializer: ISerializer<T>

Functions

advise

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

deepClone

fun deepClone(): RdOptionalProperty<T>

identify

fun identify(identities: IIdentities, id: RdId): Unit

print

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

set

fun set(newValue: T): Unit

slave

fun slave(): RdOptionalProperty<T>

Inherited Functions

init

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

onWireReceived

open fun onWireReceived(buffer: AbstractBuffer): Unit

Callback that wire triggers when it receives messaged

Companion Object Functions

read

fun read(ctx: SerializationCtx, buffer: AbstractBuffer): RdOptionalProperty<*>
fun <T : Any> read(ctx: SerializationCtx, buffer: AbstractBuffer, valueSerializer: ISerializer<T>): RdOptionalProperty<T>

write

fun write(ctx: SerializationCtx, buffer: AbstractBuffer, value: RdOptionalProperty<*>): 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