public final class IntegerEncoding
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static int |
MASK
Binary mask yielding the bits which represent the integer encoding
value in a WMQ encoding identifier
|
static IntegerEncoding |
NORMAL
Signals that integer values are encoded with the most significant byte
first.
|
static IntegerEncoding |
REVERSED
Signals that integer values are encoded with the least significant byte
first.
|
static IntegerEncoding |
UNDEFINED
Signals that integer values are of an undefined format
|
Modifier and Type | Method and Description |
---|---|
static IntegerEncoding |
forValue(int encoding)
Given a WMQ encoding, returns the relevent IntegerEncoding
object.
|
int |
getValue()
Returns the value, in a WMQ encoding, of this integer encoding
|
java.lang.String |
toString() |
public static final java.lang.String COPYRIGHT
public static final IntegerEncoding UNDEFINED
public static final IntegerEncoding NORMAL
public static final IntegerEncoding REVERSED
public static final int MASK
public int getValue()
public static IntegerEncoding forValue(int encoding)
java.lang.IllegalArgumentException
- if the integer portion of the
encoding is not a known valuepublic java.lang.String toString()
toString
in class java.lang.Object