RemotePatch

class RemotePatch(val root: Long, changed: Collection<RemoteNode>, removed: Collection<Long>)(source)

Immutable changes between two successive complete declaration trees. Applying a patch validates the entire candidate before returning it, leaving the previous tree intact on failure.

Constructors

Link copied to clipboard
constructor(root: Long, changed: Collection<RemoteNode>, removed: Collection<Long>)

Types

Link copied to clipboard
object Companion

Factories for detached tree differences.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val root: Long

Functions

Link copied to clipboard
fun apply(previous: RemoteTree, limits: RemoteLimits = RemoteLimits()): RemoteTree

Builds and validates the candidate without changing previous.