compareTo

operator fun compareTo(other: SemVersion): Int
operator fun compareTo(other: String): Int

Compares this version to another version. If the number of components in the versions differ, the version with fewer components is considered less than the other.

Return

A negative integer, zero, or a positive integer if this version is less than, equal to, or greater than the other version.

Parameters

other

The other version.