public final class SemanticVersion
extends java.lang.Object
| Constructor and Description |
|---|
SemanticVersion(java.lang.String version) |
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(java.lang.Object o1,
java.lang.Object o2)
compare takes object inputs and coerces them into SemanticVersion objects before performing the comparison.
|
int |
compare(SemanticVersion targetedVersion) |
boolean |
isBuild() |
boolean |
isPreRelease() |
java.lang.String[] |
splitSemanticVersion() |
public static int compare(java.lang.Object o1,
java.lang.Object o2)
throws UnexpectedValueTypeException
UnexpectedValueTypeException is thrown.o1 - The object to be comparedo2 - The object to be compared toUnexpectedValueTypeException - when an error is detected while comparingpublic int compare(SemanticVersion targetedVersion) throws java.lang.Exception
java.lang.Exceptionpublic boolean isPreRelease()
public boolean isBuild()
public java.lang.String[] splitSemanticVersion()
throws java.lang.Exception
java.lang.Exception