History

What this one edit does to the document it was applied to, read as fairness history: what LocalHeddle.apply would do were this edit the whole difference. A child is identified by its names from the root down, so an edit that changes a name along the way makes a new child (see Topology).

One edit, not a save. An editor that chains edits cannot add these up into a warning: a rename and the rename back, an add and then a remove, or a new weight and then the old one are two edits each and no change at all. The warning before saving is loaded.changesTo(candidate) (Topology.changesTo), which compares the tree the editor started from with the one it is about to save, and whose every change answers TopologyChange.saveEffect. Each value here is the shape Topology.changesTo gives for that edit alone, between valid trees.

Entries

Link copied to clipboard

Nothing loses history: a ceiling, an edit that changes nothing, a reorder among siblings, or a template added, or changed in a way that keeps every attached child's history (setTemplate).

Link copied to clipboard

The node keeps its name and its place, but its share restarts: a new weight is a new edge, so the node rejoins its parent's front. What lies beneath it keeps its history.

Link copied to clipboard

A new child, with no history. Nothing already in the tree loses any.

Link copied to clipboard

The child and everything beneath it drain and retire, and their history goes with them.

Link copied to clipboard

A rename, or a move to another parent: a delete plus an add. The old child, and everything beneath it, drains under its old names, and the new one starts with no history.

Link copied to clipboard

The root was renamed. This is a new tree, not an edit of the running one: LocalHeddle.apply and Topology.diff throw IllegalArgumentException for a tree with another root.

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int