org.codehaus.modello.model
Class Version

java.lang.Object
  extended byorg.codehaus.modello.model.Version

public class Version
extends java.lang.Object

A version string is on the form ...

Version:
$Id: Version.java 360 2005-06-12 10:39:57Z trygvis $
Author:
Trygve Laugstøl, Emmanuel Venisse

Field Summary
static Version INFINITE
           
private  short major
           
private  short micro
           
private  short minor
           
 
Constructor Summary
Version(java.lang.String version)
           
 
Method Summary
 boolean equals(java.lang.Object object)
           
 int getMajor()
           
 int getMicro()
           
 int getMinor()
           
 boolean greaterOrEqualsThan(Version other)
          Returns true if this is greater or equals that other.
 boolean greaterThan(Version other)
          Returns true if this is greater that other.
 int hashCode()
           
 boolean inside(VersionRange range)
           
 boolean lesserOrEqualsThan(Version other)
          Returns true if this is lesser or equals that other.
 boolean lesserThan(Version other)
          Returns true if this is lesser that other.
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String prefix, java.lang.String separator)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INFINITE

public static final Version INFINITE

major

private short major

minor

private short minor

micro

private short micro
Constructor Detail

Version

public Version(java.lang.String version)
Method Detail

getMajor

public int getMajor()

getMinor

public int getMinor()

getMicro

public int getMicro()

greaterThan

public boolean greaterThan(Version other)
Returns true if this is greater that other.

Parameters:
other -

greaterOrEqualsThan

public boolean greaterOrEqualsThan(Version other)
Returns true if this is greater or equals that other.

Parameters:
other -

lesserThan

public boolean lesserThan(Version other)
Returns true if this is lesser that other.

Parameters:
other -

lesserOrEqualsThan

public boolean lesserOrEqualsThan(Version other)
Returns true if this is lesser or equals that other.

Parameters:
other -

inside

public boolean inside(VersionRange range)

equals

public boolean equals(java.lang.Object object)

hashCode

public int hashCode()

toString

public java.lang.String toString()

toString

public java.lang.String toString(java.lang.String prefix,
                                 java.lang.String separator)