public class ArtifactVersion extends Object implements Comparable<ArtifactVersion>
| Constructor and Description |
|---|
ArtifactVersion(String version)
Instantiates a new artifact version.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ArtifactVersion otherVersion) |
String |
dump()
Dump.
|
boolean |
equals(Object other) |
int |
getBuildNumber()
Gets the builds the number.
|
int |
getIncrementalVersion()
Gets the incremental version.
|
int |
getMajorVersion()
Gets the major version.
|
int |
getMinorVersion()
Gets the minor version.
|
String |
getQualifier()
Gets the qualifier.
|
String |
getVersion()
Gets the version.
|
int |
hashCode() |
void |
parseVersion(String version)
Parses the version.
|
String |
toString() |
public ArtifactVersion(String version)
version - the versionpublic String getVersion()
public int compareTo(ArtifactVersion otherVersion)
compareTo in interface Comparable<ArtifactVersion>public int getMajorVersion()
public int getMinorVersion()
public int getIncrementalVersion()
public int getBuildNumber()
public String getQualifier()
public final void parseVersion(String version)
version - the versionpublic String dump()
Copyright © 2018. All rights reserved.