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, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(String version, String otherVersion)
compare in interface Comparator<String>otherVersion - Copyright © 2023. All Rights Reserved.