public class Version
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CODENAME |
static java.lang.String |
description |
static short |
major |
static short |
micro |
static short |
minor |
static java.lang.String |
string_version |
static short |
version |
static java.lang.String |
VERSION_FILE |
static java.lang.String |
VERSION_PROPERTY |
Constructor and Description |
---|
Version() |
Modifier and Type | Method and Description |
---|---|
static short[] |
decode(short version) |
static short |
encode(int major,
int minor,
int micro)
Method copied from http://www.jboss.com/index.html?module=bb&op=viewtopic&t=77231
|
static boolean |
isBinaryCompatible(short ver)
Checks whether ver is binary compatible with the current version.
|
static boolean |
isBinaryCompatible(short ver1,
short ver2) |
static boolean |
isSame(short v)
Compares the specified version number against the current version number.
|
static void |
main(java.lang.String[] args)
Prints the value of the description and cvs fields to System.out.
|
static java.lang.String |
print(short version)
Method copied from http://www.jboss.com/index.html?module=bb&op=viewtopic&t=77231
|
static java.lang.String |
printDescription()
Returns the catenation of the description and cvs fields.
|
static java.lang.String |
printVersion()
Returns the version field as a String.
|
public static final short major
public static final short minor
public static final short micro
public static final java.lang.String description
public static final short version
public static final java.lang.String string_version
public static final java.lang.String VERSION_FILE
public static final java.lang.String VERSION_PROPERTY
public static final java.lang.String CODENAME
public static void main(java.lang.String[] args)
args
- public static java.lang.String printDescription()
public static java.lang.String printVersion()
public static boolean isSame(short v)
v
- shortpublic static short encode(int major, int minor, int micro)
public static java.lang.String print(short version)
public static short[] decode(short version)
public static boolean isBinaryCompatible(short ver)
ver
- public static boolean isBinaryCompatible(short ver1, short ver2)
Copyright © 1998-2020 Red Hat. All Rights Reserved.