compareTo

operator fun <A : Units, B : A> A.compareTo(other: B): Int(source)

Compares two units

Return

-1 if this unit is smaller, 1 if the other is smaller, and 0 if they are equal

Parameters

other

unit to compare