component-installation-plugin / com.intershop.gradle.component.installation.utils / VersionComparator / compare

compare

fun compare(version1: String?, version2: String?): Int

Compares its two versions for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Parameters

version1 - the first version to be compared.

version2 - the second version to be compared.