org.shlublu.javax.util
Class Version

java.lang.Object
  |
  +--org.shlublu.javax.util.Version

public abstract class Version
extends java.lang.Object

Creation : 12 oct 2001 This class handles x.x version number and names

Since:
0.1

Field Summary
protected  int MAJ
          Major version number
protected  int MIN
          Minor version number
protected  java.lang.String NAME
          Product name
 
Constructor Summary
Version()
           
 
Method Summary
 int compare(Version a, Version b)
          Returns >0 when a > b, <0 when a < b, 0 otherwise
 int maj()
          Returns the major version number
 int min()
          Returns the minor version number
 java.lang.String name()
          Returns the product name
 java.lang.String toString()
          Returns name() + " " + "v" + maj() + "."
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAJ

protected int MAJ
Major version number

MIN

protected int MIN
Minor version number

NAME

protected java.lang.String NAME
Product name
Constructor Detail

Version

public Version()
Method Detail

maj

public int maj()
Returns the major version number

min

public int min()
Returns the minor version number

name

public java.lang.String name()
Returns the product name

compare

public int compare(Version a,
                   Version b)
Returns >0 when a > b, <0 when a < b, 0 otherwise

toString

public java.lang.String toString()
Returns name() + " " + "v" + maj() + "." + min()
Overrides:
toString in class java.lang.Object