MapDiff

data class MapDiff<K, V> constructor(val removed: Map<K, V>, val changed: Map<K, Pair<V, V>>, val added: Map<K, V>)

Contains diff based on the comparison of objects with the same K.

Parameters

removed

Contains map with keys removed from parent map

changed

Contains map with keys values changed new map in comparison with old one

added

Contains map with new keys and values

Constructors

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

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
inline fun isNotEmpty(): Boolean
Link copied to clipboard
fun <K, V> MapDiff<K, V>.reversed(): MapDiff<K, V>

Reverse this. Result will contain MapDiff.added on MapDiff.removed (and vice-verse), all the MapDiff.changed values will be reversed too

Properties

Link copied to clipboard
val added: Map<K, V>
Link copied to clipboard
val changed: Map<K, Pair<V, V>>
Link copied to clipboard
val removed: Map<K, V>