public class SemVer extends Object implements Comparable<SemVer>
Modifier and Type | Field and Description |
---|---|
Integer |
major |
Integer |
micro |
Integer |
minor |
private static Pattern |
PARSE_VERSION |
String |
suffix |
Constructor and Description |
---|
SemVer(Integer major,
Integer minor,
Integer micro,
String suffix) |
Modifier and Type | Method and Description |
---|---|
static int |
compare(SemVer s1,
SemVer s2) |
int |
compareTo(SemVer other) |
private static Integer |
compareVersions(Integer v1,
Integer v2,
boolean isSnapshot) |
static SemVer |
parse(String value) |
String |
toString() |
public final Integer major
public final Integer minor
public final Integer micro
public final String suffix
private static final Pattern PARSE_VERSION
public int compareTo(SemVer other)
compareTo
in interface Comparable<SemVer>
Copyright © 2022 Requirement Yogi. All rights reserved.