EqualityPolicy

fun interface EqualityPolicy<T>

This interface is used to provide custom equality for various ObservableProperty operators like ObservableProperty.map and ObservableProperty.filter.

Its purpose is to weed out duplicate values to prevent unnecessary UI updates.

Functions

Link copied to clipboard
abstract fun isEqual(oldValue: T, newValue: T): Boolean

Method for providing custom equality for oldValue and newValue.