org.apache.maven.artifact.versioning
Class DefaultArtifactVersion
java.lang.Object
org.apache.maven.artifact.versioning.DefaultArtifactVersion
- All Implemented Interfaces:
- Comparable, ArtifactVersion
public class DefaultArtifactVersion
- extends Object
- implements ArtifactVersion
Default implementation of artifact versioning.
- Version:
- $Id: DefaultArtifactVersion.java 674059 2008-07-04 14:04:24Z brett $
- Author:
- Brett Porter
DefaultArtifactVersion
public DefaultArtifactVersion(String version)
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
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
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.