org.apache.geronimo.kernel.repository
Class Version
java.lang.Object
org.apache.geronimo.kernel.repository.Version
- All Implemented Interfaces:
- Serializable, Comparable
public class Version
- extends Object
- implements Comparable, Serializable
Default implementation of artifact versioning.
- Author:
- Brett Porter
- See Also:
- Serialized Form
Version
public Version(String version)
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
getMajorVersion
public int getMajorVersion()
getMinorVersion
public int getMinorVersion()
getIncrementalVersion
public int getIncrementalVersion()
getBuildNumber
public int getBuildNumber()
getQualifier
public String getQualifier()
parseVersion
public final void parseVersion(String version)
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 © 2006 Apache Software Foundation. All Rights Reserved.