public static class VersionUtils.Version extends Object
Modifier and Type | Field and Description |
---|---|
String |
feature |
int |
major |
int |
minor |
int |
patch |
int |
rc |
String |
version |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(String spec)
Check whether the given version spec matches with current version.
|
String |
toString() |
public final String version
public final String feature
public final int major
public final int minor
public final int patch
public final int rc
public boolean matches(String spec)
The version spec can be exact version number, or version number
prefixed with ~
it matches all subsequent patch
versions.
Giver a version 3.0.4
following holds:
spec
- the version spec to test