public class Semver extends Object
| Constructor and Description |
|---|
Semver(String version)
Constructs a new
Semver instance with given version string. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Semver another)
Compares this
Semver instance with another |
String |
toString() |
public Semver(String version)
Semver instance with given version string.version - a version string in a valid semver pattern, e.g. "1.2.4"IllegalArgumentException - if the given version is not a valid Semantic Version with at least major, minor
and patch information.Copyright © 2023. All rights reserved.