public class Version extends Object
| Constructor and Description |
|---|
Version(int major,
int minor)
Creates a new
Version instance. |
| Modifier and Type | Method and Description |
|---|---|
Version |
adjust()
Adjust a version for spec weirdness.
|
static boolean |
checkVersion(Version clientVersion,
Version serverVersion)
Check compatibility of a client and server version, from the
client's perspective.
|
boolean |
equals(Object o) |
int |
getMajor()
Retrieve the major version number.
|
int |
getMinor()
Retrieve the minor version number.
|
int |
hashCode() |
String |
toString()
Retrieve a String representation of the version in the standard
AMQP version format of major-minor.
|
public Version(int major,
int minor)
Version instance.major - the AMQP major version numberminor - the AMQP minor version numberpublic int getMajor()
public int getMinor()
public String toString()
toString in class ObjectString representation of the versionObject.toString()public Version adjust()
VersionCopyright © 2021 VMware, Inc. or its affiliates.. All rights reserved.