| java.lang.Object org.jgroups.Version
Version | public class Version (Code) | | We're using the scheme described at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=77231
for major, minor and micro version numbers. We have 5 bits for major and minor version numbers each and
6 bits for the micro version.
This gives:
X = 0-31 for major versions
Y = 0-31 for minor versions
Z = 0-63 for micro versions
author: Bela Ban version: $Id: Version.java,v 1.42.2.5 2007/04/27 07:27:16 belaban Exp $ version: Holds version information for JGroups. |
Method Summary | |
public static short[] | decode(short version) | public static short | encode(int major, int minor, int micro) | public static boolean | isBinaryCompatible(short ver) Checks whether ver is binary compatible with the current version. | public static boolean | isBinaryCompatible(short ver1, short ver2) | public static boolean | isSame(short v) Compares the specified version number against the current version number. | public static void | main(String[] args) Prints the value of the description and cvs fields to System.out. | public static String | print(short version) | public static String | printDescription() Returns the catenation of the description and cvs fields. | public static String | printVersion() Returns the version field as a String. |
major | final public static short major(Code) | | |
micro | final public static short micro(Code) | | |
minor | final public static short minor(Code) | | |
string_version | final public static String string_version(Code) | | |
version | final public static short version(Code) | | |
decode | public static short[] decode(short version)(Code) | | |
encode | public static short encode(int major, int minor, int micro)(Code) | | Method copied from http://www.jboss.com/index.html?module=bb&op=viewtopic&t=77231
|
isBinaryCompatible | public static boolean isBinaryCompatible(short ver)(Code) | | Checks whether ver is binary compatible with the current version. The rule for binary compatibility is that
the major and minor versions have to match, whereas micro versions can differ.
Parameters: ver - |
isBinaryCompatible | public static boolean isBinaryCompatible(short ver1, short ver2)(Code) | | |
isSame | public static boolean isSame(short v)(Code) | | Compares the specified version number against the current version number.
Parameters: v - short Result of == operator. |
main | public static void main(String[] args)(Code) | | Prints the value of the description and cvs fields to System.out.
Parameters: args - |
print | public static String print(short version)(Code) | | Method copied from http://www.jboss.com/index.html?module=bb&op=viewtopic&t=77231
|
printDescription | public static String printDescription()(Code) | | Returns the catenation of the description and cvs fields.
String with description |
printVersion | public static String printVersion()(Code) | | Returns the version field as a String.
String with version |
|
|