org.apache.maven.artifact.versioning
Class DefaultArtifactVersion

java.lang.Object
  extended by 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
DefaultArtifactVersion(String version)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultArtifactVersion

public DefaultArtifactVersion(String version)
Method Detail

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-2013 The Apache Software Foundation. All Rights Reserved.