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

Link copied to clipboard
constructor(added: Map<String, C>, removed: Map<String, C>, changed: Map<String, Pair<C, C>>)

Properties

Link copied to clipboard
val added: Map<String, C>

Entries present in the new schema but not the old.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Entries present in the old schema but not the new.

SchemaDiff

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

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.