public abstract class VersionComparator extends Object
| Modifier and Type | Field and Description |
|---|---|
static VersionComparator |
EQUAL
Compares versions by checking if the version strings are equal
|
static VersionComparator |
SEM_VER
Compares versions by their Sematic Version (
Major.Minor.Patch, semver.org). |
static VersionComparator |
SEM_VER_SNAPSHOT
Same as
SEM_VER, but supports version names with '-SNAPSHOT' suffixes |
| Constructor and Description |
|---|
VersionComparator() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
isNewer(String currentVersion,
String checkVersion)
Called to check if a version is newer
|
public static final VersionComparator EQUAL
public static final VersionComparator SEM_VER
Major.Minor.Patch, semver.org). Removes dots and compares the resulting Integer valuespublic static final VersionComparator SEM_VER_SNAPSHOT
SEM_VER, but supports version names with '-SNAPSHOT' suffixesCopyright © 2021. All rights reserved.