ModifierNodeType
constructor(elementClass: KClass<E>, nodeClass: KClass<out N>, validateLocal: (E) -> Unit, createNode: (E) -> N, updateNode: (E, E, N) -> DirtyMask)(source)
Parameters
elementClass
the runtime class used to validate and cast descriptions at the erased boundary.
nodeClass
the runtime class used to validate and cast retained nodes at the erased boundary.
validateLocal
checks properties owned by one description before retained mutation.
createNode
creates a fresh, never-owned modifier node for a validated description.
updateNode
applies previous and current descriptions on the owner thread and reports affected phases.
Type Parameters
E
the immutable modifier description type.
N
the retained modifier node type.