qflib 0.98.1

de.qfs.lib
Class Version

java.lang.Object
  |
  +--de.qfs.lib.Version

public class Version
extends java.lang.Object

This class provides access to the qflib version number. The version is composed of a major a minor and a release part.

Releases of qflib with different major version are generally considered incompatible. Differences in minor version are also considered incompatible, but may not be fatal.

The release number is increased for bug fixes and extensions that do not change any visible interfaces.

Version:
$Revision: 1.14 $
Author:
Gregor Schmid

Field Summary
static java.lang.String JDK_VERSION
          The JDK version to which this qflib version is compatible.
static int MAJOR
          The major version.
static int MINOR
          The minor version.
static int RELEASE
          The release number.
 
Constructor Summary
Version()
           
 
Method Summary
static java.lang.String getVersion()
          Get the full qflib version as a String.
static void main(java.lang.String[] argv)
          Dump the version numbers for this release to System.out.
With argument -version print the whole version number.
With argument -major print only the major number.
With argument -minor print only the minor number.
With argument -release print only the release number.
With argument -jdk print only the JDK version for which this qflib version was compiled.
Otherwise print a message containing the full version.
static boolean require(int major, int minor, int release)
          Check, whether this release of qflib is compatible with the required version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAJOR

public static final int MAJOR
The major version.

MINOR

public static final int MINOR
The minor version.

RELEASE

public static final int RELEASE
The release number.

JDK_VERSION

public static final java.lang.String JDK_VERSION
The JDK version to which this qflib version is compatible.
Constructor Detail

Version

public Version()
Method Detail

getVersion

public static java.lang.String getVersion()
Get the full qflib version as a String.
Returns:
The qflib version in the format MAJOR.MINOR.RELEASE

require

public static final boolean require(int major,
                                    int minor,
                                    int release)
Check, whether this release of qflib is compatible with the required version.
Parameters:
major - The required major version. Must be equal to MAJOR.
minor - The required minor version. Must be equal to MINOR.
release - The required major version. Must be less than or equal to RELEASE.
Returns:
True if this release of qflib is compatible with the requested one, false otherwise.

main

public static void main(java.lang.String[] argv)
Dump the version numbers for this release to System.out.
With argument -version print the whole version number.
With argument -major print only the major number.
With argument -minor print only the minor number.
With argument -release print only the release number.
With argument -jdk print only the JDK version for which this qflib version was compiled.
Otherwise print a message containing the full version.

qflib 0.98.1