skema

SchemaDiff

data class SchemaDiff<C>(val added: Map<String, C>, val removed: Map<String, C>, val changed: Map<String, Pair<C, C>>)(source)

Per-entry difference between two schemas. Equal entries on both sides are omitted.

Constructors

SchemaDiff

constructor(added: Map<String, C>, removed: Map<String, C>, changed: Map<String, Pair<C, C>>)(source)

Properties

added

Entries present in the new schema but not the old.

changed

Entries present in both schemas whose configs differ, mapped to (old, new).

isEmpty

True when there are no added, removed, or changed entries.

removed

Entries present in the old schema but not the new.