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

compareValues

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

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

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