org.codehaus.modello.model

Class Version

public class Version extends 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 VersionINFINITE
Constructor Summary
Version(String version)
Method Summary
booleanequals(Object object)
intgetMajor()
intgetMicro()
intgetMinor()
booleangreaterOrEqualsThan(Version other)
Returns true if this is greater or equals that other.
booleangreaterThan(Version other)
Returns true if this is greater that other.
inthashCode()
booleaninside(VersionRange range)
booleanlesserOrEqualsThan(Version other)
Returns true if this is lesser or equals that other.
booleanlesserThan(Version other)
Returns true if this is lesser that other.
StringtoString()
StringtoString(String prefix, String separator)

Field Detail

INFINITE

public static final Version INFINITE

Constructor Detail

Version

public Version(String version)

Method Detail

equals

public boolean equals(Object object)

getMajor

public int getMajor()

getMicro

public int getMicro()

getMinor

public int getMinor()

greaterOrEqualsThan

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

Parameters: other

greaterThan

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

Parameters: other

hashCode

public int hashCode()

inside

public boolean inside(VersionRange range)

lesserOrEqualsThan

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

Parameters: other

lesserThan

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

Parameters: other

toString

public String toString()

toString

public String toString(String prefix, String separator)
Copyright © 2001-2007 Codehaus. All Rights Reserved.