Class DefaultArtifactVersion
java.lang.Object
org.apache.maven.artifact.versioning.DefaultArtifactVersion
- All Implemented Interfaces:
Comparable<ArtifactVersion>
,ArtifactVersion
Default implementation of artifact versioning.
- Author:
- Brett Porter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(ArtifactVersion otherVersion) boolean
int
int
int
int
int
hashCode()
final void
parseVersion
(String version) toString()
-
Constructor Details
-
DefaultArtifactVersion
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ArtifactVersion>
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersion
in interfaceArtifactVersion
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersion
in interfaceArtifactVersion
-
getIncrementalVersion
public int getIncrementalVersion()- Specified by:
getIncrementalVersion
in interfaceArtifactVersion
-
getBuildNumber
public int getBuildNumber()- Specified by:
getBuildNumber
in interfaceArtifactVersion
-
getQualifier
- Specified by:
getQualifier
in interfaceArtifactVersion
-
parseVersion
- Specified by:
parseVersion
in interfaceArtifactVersion
-
toString
-