MilanoValue

sealed class MilanoValue

The single representation for every value crossing a Milano boundary: resolved properties into renderers, event payloads out of them, action parameters into handlers, context and state values in from the host.

Mirrors the document type system exactly: bool, int (64-bit), double (IEEE 754 binary64), string, array, record, null.

Inheritors

Types

Link copied to clipboard
data class ArrayValue(val values: List<MilanoValue>) : MilanoValue
Link copied to clipboard
data class BoolValue(val value: Boolean) : MilanoValue
Link copied to clipboard
object Companion
Link copied to clipboard
data class DoubleValue(val value: Double) : MilanoValue
Link copied to clipboard
data class IntValue(val value: Long) : MilanoValue
Link copied to clipboard
data object Null : MilanoValue
Link copied to clipboard
data class RecordValue(val values: Map<String, MilanoValue>) : MilanoValue
Link copied to clipboard
data class StringValue(val value: String) : MilanoValue

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Int

The document model's value size, the unit of the value size limit: one for a scalar or null, one per Unicode scalar for a string, and one plus the sizes of the elements or fields for an array or a record.

Link copied to clipboard