public class SemVer extends Object implements Comparable<SemVer>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SemVer o) |
boolean |
equals(Object o) |
int |
getMajor() |
int |
getMinor() |
int |
getPatch() |
String |
getSuffix() |
int |
hashCode() |
String |
toString() |
static SemVer |
valueOf(String semVer)
Gets a
SemVer value after performing a naive and lightway parsing of the given string. |
public static SemVer valueOf(String semVer)
SemVer value after performing a naive and lightway parsing of the given string.semVer - a string representing a semVer value.SemVer value.IllegalArgumentException - if given string can't be parsed.public int getMajor()
public int getMinor()
public int getPatch()
public String getSuffix()
public int compareTo(SemVer o)
compareTo in interface Comparable<SemVer>Copyright © 2021 MuleSoft, Inc.. All rights reserved.