public final class SemVer extends Object implements Comparable<SemVer>
Constructor and Description |
---|
SemVer(int... version)
Constructor.
|
SemVer(String version)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
atLeast(SemVer otherVersion)
Comparator.
|
boolean |
before(SemVer otherVersion)
Comparator.
|
int |
compareTo(SemVer o) |
String |
toString() |
public SemVer(int... version)
version
- integer version componentspublic SemVer(String version)
version
- string version with dot separatorspublic boolean atLeast(SemVer otherVersion)
otherVersion
- version to comparepublic boolean before(SemVer otherVersion)
otherVersion
- version to comparepublic int compareTo(SemVer o)
compareTo
in interface Comparable<SemVer>
Copyright © 2000–2024 Packwood Software. All rights reserved.