@CompileStatic class VersionComparator extends Object implements Comparator<String>
A comparator capable of sorting versions from from newest to oldest
Constructor and description |
---|
VersionComparator() |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
compare(String o1, String o2) |
|
protected String |
deSnapshot(String version) Removes any suffixes that indicate that the version is a kind of snapshot |
|
boolean |
equals(Object obj) |
|
protected boolean |
isSnapshot(String version) |
Removes any suffixes that indicate that the version is a kind of snapshot