public class VersionComparator extends Object implements Comparator<String>
| Constructor and Description |
|---|
VersionComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String version,
String otherVersion)
Compares version to another given version, taking the numeric,
dot-separated part and comparing them, major, minor, etcetera.
Version suffixes (milestones and such) should be compared separately. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic int compare(String version, String otherVersion)
compare in interface Comparator<String>otherVersion - Copyright © 2018. All Rights Reserved.