com.rabbitmq.client.impl
public class Version extends java.lang.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(java.lang.Object o) |
int |
getMajor()
Retrieve the major version number.
|
int |
getMinor()
Retrieve the minor version number.
|
int |
hashCode() |
java.lang.String |
toString()
Retrieve a String representation of the version in the standard
AMQP version format of
|
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 java.lang.String toString()
toString in class java.lang.ObjectString representation of the versionObject.toString()public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic Version adjust()
Version