public class SemanticVersion extends Object implements Comparable<IVersion>, IVersion
| Modifier | Constructor and Description |
|---|---|
protected |
SemanticVersion() |
|
SemanticVersion(int major) |
|
SemanticVersion(int major,
int minor) |
|
SemanticVersion(int major,
int minor,
int patch) |
|
SemanticVersion(String buf)
Use an external library for parsing.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IVersion other) |
boolean |
equals(Object o) |
int |
getMajor() |
int |
getMinor() |
int |
getPatch() |
com.github.zafarkhaja.semver.Version |
getVersionImpl()
Get the SemVer instance.
|
int |
hashCode() |
boolean |
isStable()
Returns true if this represents a stable release.
|
protected void |
setVersion(String buf)
Set the version
|
String |
toString() |
public SemanticVersion(String buf)
buf - Version we are trying to parsepublic SemanticVersion(int major)
public SemanticVersion(int major,
int minor)
public SemanticVersion(int major,
int minor,
int patch)
protected SemanticVersion()
protected void setVersion(String buf)
buf - Version we are trying to parsepublic int getMajor()
public int getMinor()
public int getPatch()
public int compareTo(IVersion other)
compareTo in interface Comparable<IVersion>public boolean isStable()
public com.github.zafarkhaja.semver.Version getVersionImpl()
Copyright © 2016. All rights reserved.