Documentation / dataflow / com.femastudios.dataflow.extensions / compareValues
Go to reference

compareValues

fun <T : Comparable<*>> compareValues(a: T?, b: Field<T?>?): Field<Int>
fun <T : Comparable<*>> compareValues(a: Field<T?>?, b: T?): Field<Int>
fun <T : Comparable<*>> compareValues(a: Field<T?>?, b: Field<T?>?): Field<Int>

Same as compareValues, but accepts Field and returns a new Field.

Calling this function is equivalent to use transform and calling compareValues in the transformation function.

This is simply a convenience function.

See Also

kotlin.comparisons.compareValues