compareTo

operator fun compareTo(distance: Distance): Int

Implements the <=, => compare logic, so class can be used in expressions such as @sample oneDistance <= anotherDistance.