public class SemanticVersion extends Object implements Comparable<IVersion>, IVersion
| Modifier | Constructor and Description |
|---|---|
protected |
SemanticVersion() |
|
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() |
int |
hashCode() |
boolean |
isStable()
Returns true if this represents a stable release.
|
boolean |
satisfies(String range)
Returns true if this version satisfies the provided version
range.
|
protected void |
setVersion(String buf)
Set the version
|
String |
toString() |
public SemanticVersion(String buf)
buf - Version we are trying to parseprotected SemanticVersion()
protected void setVersion(String buf)
buf - Version we are trying to parsepublic int getMajor()
public int getMinor()
public int getPatch()
public boolean satisfies(String range)
IVersionpublic int compareTo(IVersion other)
compareTo in interface Comparable<IVersion>Copyright © 2015. All rights reserved.