compareVersions

abstract fun compareVersions(first: String, second: String): String(source)

Compare two versions and return the higher of the two. If null is returned, it is assumed that at least one of the two versions are unsupported by this version scheme parser.

Return

the greater of the two versions. null if unsupported version schemes

Parameters

first

the first version to check

second

the second version to check