org.apache.geronimo.kernel.repository
Class Version

java.lang.Object
  extended by org.apache.geronimo.kernel.repository.Version
All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
SnapshotVersion

public class Version
extends Object
implements Comparable, Serializable

Default implementation of artifact versioning.

Author:
Brett Porter
See Also:
Serialized Form

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

Version

public Version(String version)
Method Detail

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 © 2003-2007 Apache Software Foundation. All Rights Reserved.