com.ibm.mq.data
Class DecimalEncoding
- java.lang.Object
-
- com.ibm.mq.data.DecimalEncoding
-
public final class DecimalEncoding extends java.lang.ObjectEnumeration-style class giving values for each of the three decimal encodings recognised by WebSphere MQ: undefined, normal and reversed.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringCOPYRIGHTstatic intMASKBinary mask yielding the bits which represent the decimal encoding value in a WMQ encoding identifierstatic DecimalEncodingNORMALSignals that decimal values are encoded as packed decimal, with the most significant byte first.static DecimalEncodingREVERSEDSignals that decimal values are encoded as packed decimal, with the most significant byte last.static DecimalEncodingUNDEFINEDSignals that decimal values are of an undefined format
-
Method Summary
Methods Modifier and Type Method and Description static DecimalEncodingforValue(int encoding)Given a WMQ encoding, returns the relevent DecimalEncoding object.intgetValue()Returns the value, in a WMQ encoding, of this decimal encodingjava.lang.StringtoString()
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
-
UNDEFINED
public static final DecimalEncoding UNDEFINED
Signals that decimal values are of an undefined format
-
NORMAL
public static final DecimalEncoding NORMAL
Signals that decimal values are encoded as packed decimal, with the most significant byte first.
-
REVERSED
public static final DecimalEncoding REVERSED
Signals that decimal values are encoded as packed decimal, with the most significant byte last.
-
MASK
public static final int MASK
Binary mask yielding the bits which represent the decimal encoding value in a WMQ encoding identifier- See Also:
- Constant Field Values
-
-
Method Detail
-
getValue
public int getValue()
Returns the value, in a WMQ encoding, of this decimal encoding
-
forValue
public static DecimalEncoding forValue(int encoding)
Given a WMQ encoding, returns the relevent DecimalEncoding object. Only the decimal portion of the encoding is significant.- Throws:
java.lang.IllegalArgumentException- if the decimal portion of the encoding is not a known value
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-