Is there a standard idiom for comparing version numbers? I can't just use a straight String compareTo because I don't know yet what the maximum number of point releases there will be. I need to compare the versions and have the following hold true:
1.0 < 1.1
1.0.1 < 1.1
1.9 < 1.10
for my projects I use my commons-version library https://github.com/raydac/commons-version it contains two auxiliary classes - to parse version (parsed version can be compared with another version object because it is comparable one) and VersionValidator which allows to check version for some expression like
!=ide-1.1.1,>idea-1.3.4-SNAPSHOT;<1.2.3