org.apache.maven.artifact.versioning
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
DefaultArtifactVersion
public DefaultArtifactVersion(String version)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
compareTo
public int compareTo(ArtifactVersion otherVersion)
- Specified by:
compareTo
in interface Comparable<ArtifactVersion>
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion
in interface ArtifactVersion
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion
in interface ArtifactVersion
getIncrementalVersion
public int getIncrementalVersion()
- Specified by:
getIncrementalVersion
in interface ArtifactVersion
getBuildNumber
public int getBuildNumber()
- Specified by:
getBuildNumber
in interface ArtifactVersion
getQualifier
public String getQualifier()
- Specified by:
getQualifier
in interface ArtifactVersion
parseVersion
public final void parseVersion(String version)
- Specified by:
parseVersion
in interface ArtifactVersion
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.