@groovy.transform.CompileStatic class VersionComparator extends java.lang.Object implements java.util.Comparator<java.lang.String>
A comparator capable of sorting versions from from newest to oldest
Modifiers | Name | Description |
---|---|---|
private static java.util.List<java.lang.String> |
SNAPSHOT_SUFFIXES |
Constructor and description |
---|
VersionComparator
() |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
compare(java.lang.String o1, java.lang.String o2) |
|
protected java.lang.String |
deSnapshot(java.lang.String version) Removes any suffixes that indicate that the version is a kind of snapshot |
|
boolean |
equals(java.lang.Object obj) |
|
protected boolean |
isSnapshot(java.lang.String version) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Removes any suffixes that indicate that the version is a kind of snapshot