Class DefaultArtifactVersion
- java.lang.Object
-
- org.apache.maven.artifact.versioning.DefaultArtifactVersion
-
- All Implemented Interfaces:
Comparable<ArtifactVersion>
,ArtifactVersion
public class DefaultArtifactVersion extends Object implements ArtifactVersion
Default implementation of artifact versioning.- Author:
- Brett Porter
-
-
Constructor Summary
Constructors Constructor Description DefaultArtifactVersion(String version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ArtifactVersion otherVersion)
boolean
equals(Object other)
int
getBuildNumber()
int
getIncrementalVersion()
int
getMajorVersion()
int
getMinorVersion()
String
getQualifier()
int
hashCode()
void
parseVersion(String version)
String
toString()
-
-
-
Constructor Detail
-
DefaultArtifactVersion
public DefaultArtifactVersion(String version)
-
-
Method Detail
-
compareTo
public int compareTo(ArtifactVersion otherVersion)
- 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
public String getQualifier()
- Specified by:
getQualifier
in interfaceArtifactVersion
-
parseVersion
public final void parseVersion(String version)
- Specified by:
parseVersion
in interfaceArtifactVersion
-
-