compareTo

open operator override fun compareTo(other: Path): Int(source)

Compares this path to the other path. The comparison is based on the currentCost of both paths.

Return

a negative integer, zero, or a positive integer as this path is less expensive than, equal to, or greater than the other path

Parameters

other

the other path to compare this path to