apply Diff
fun <T> MutableList<T>.applyDiff(source: Iterable<T>, strictComparison: Boolean = false): Diff<T>(source)
This method call calculateDiff with strict mode strictComparison and then apply differences to this mutable list
fun <T> MutableList<T>.applyDiff(source: Iterable<T>, comparisonFun: (T?, T?) -> Boolean): Diff<T>(source)
This method call calculateDiff and then apply differences to this mutable list
fun <K, V> MutableMap<K, V>.applyDiff(from: Map<K, V>, compareFun: (K, V, V) -> Boolean): MapDiff<K, V>(source)
Will apply changes with from map into this one
Return
Parameters
compare Fun
Will be used to determine changed values
fun <K, V> MutableMap<K, V>.applyDiff(from: Map<K, V>, strictComparison: Boolean = false): MapDiff<K, V>(source)
Will apply changes with from map into this one
Return
Parameters
strict Comparison
If true, will use strict (===) comparison for the values' comparison. Otherwise, standard equals
will be used