org.apache.maven.artifact.versioning
Class ComparableVersion

java.lang.Object
  extended by org.apache.maven.artifact.versioning.ComparableVersion
All Implemented Interfaces:
Comparable<ComparableVersion>

public class ComparableVersion
extends Object
implements Comparable<ComparableVersion>

Generic implementation of version comparison.

Features:

Author:
Kenney Westerhof, Hervé Boutemy
See Also:
"Versioning" on Maven Wiki

Constructor Summary
ComparableVersion(String version)
           
 
Method Summary
 int compareTo(ComparableVersion o)
           
 boolean equals(Object o)
           
 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

ComparableVersion

public ComparableVersion(String version)
Method Detail

parseVersion

public final void parseVersion(String version)

compareTo

public int compareTo(ComparableVersion o)
Specified by:
compareTo in interface Comparable<ComparableVersion>

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.