compareTo

open operator override fun compareTo(other: DocumentProvider.Position): Int(source)

Compares this Position instance to another Position based on their line and column values.

Return

A negative integer, zero, or a positive integer if this Position is less than, equal to, or greater than the specified Position, respectively.

Parameters

other

The Position instance to compare to this instance.