public final class SemVer extends Object
| Constructor and Description |
|---|
SemVer() |
| Modifier and Type | Method and Description |
|---|---|
static SemVer |
fromString(String ver) |
boolean |
isCompatibleMajor(SemVer ver)
Checks whether the version is compatible with major.
|
boolean |
isCompatibleMinor(SemVer ver)
Checks whether the version is compatible with minor and major.
|
boolean |
isCompatiblePatch(SemVer ver)
Checks whether the version is compatible with patch, minor, major.
|
boolean |
isNewerOrEqual(SemVer ver) |
String |
toString() |
public boolean isCompatiblePatch(SemVer ver)
ver - version to check againstpublic boolean isCompatibleMinor(SemVer ver)
ver - version to check againstpublic boolean isCompatibleMajor(SemVer ver)
ver - version to check againstpublic boolean isNewerOrEqual(SemVer ver)
Copyright © 2017–2018 NukkitX. All rights reserved.