public class Version extends java.lang.Object implements java.lang.Comparable, RevisionHandler
| Modifier and Type | Field and Description | 
|---|---|
| static int | MAJORthe major version | 
| static int | MINORthe minor version | 
| static int | REVISIONthe revision | 
| static boolean | SNAPSHOTTrue if snapshot | 
| static java.lang.String | VERSIONthe complete version | 
| static java.lang.String | VERSION_FILEthe version file | 
| Constructor and Description | 
|---|
| Version() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(java.lang.Object o)checks the version of this class against the given version-string | 
| boolean | equals(java.lang.Object o)whether the given version string is equal to this version | 
| java.lang.String | getRevision()Returns the revision string. | 
| boolean | isNewer(java.lang.Object o)checks whether this version is newer than the one from the given version
 string | 
| boolean | isOlder(java.lang.Object o)checks whether this version is older than the one from the given version
 string | 
| static void | main(java.lang.String[] args)only for testing | 
| java.lang.String | toString()returns the current version as string | 
public static final java.lang.String VERSION_FILE
public static int MAJOR
public static int MINOR
public static int REVISION
public static boolean SNAPSHOT
public static java.lang.String VERSION
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - the version-string to compare withpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the version-string to compare topublic boolean isOlder(java.lang.Object o)
o - the version-string to compare withpublic boolean isNewer(java.lang.Object o)
o - the version-string to compare withpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandlerpublic static void main(java.lang.String[] args)
args - the commandline arguments - ignored