Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / kotlin.Byte / compareTo
Go to reference

compareTo

@JvmName("compareToDouble") fun Byte.compareTo(other: Attribute<Double>): Attribute<Int>
@JvmName("compareToFloat") fun Byte.compareTo(other: Attribute<Float>): Attribute<Int>
@JvmName("compareToInt") fun Byte.compareTo(other: Attribute<Int>): Attribute<Int>
@JvmName("compareToLong") fun Byte.compareTo(other: Attribute<Long>): Attribute<Int>
@JvmName("compareToShort") fun Byte.compareTo(other: Attribute<Short>): Attribute<Int>
fun Byte.compareTo(other: Attribute<Byte>): Attribute<Int>

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

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

This is simply a convenience function.

See Also

kotlin.Byte.compareTo