Class UnsignedInt8
java.lang.Object
java.lang.Number
org.sblim.wbem.cim.UnsignedInt8
- All Implemented Interfaces:
Serializable, Cloneable
Implements a 8-bit unsigned integer object.
The value range of an unsigned integer of 8-bit is '0 .. 255'.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUnsignedInt8(byte pValue) Constructs an unsigned 8-bit integer object for the specified byte value.UnsignedInt8(short pValue) Constructs an unsigned 8-bit integer object for the specified short value.UnsignedInt8(String pValue) Constructs an unsigned 8-bit integer object for the specified String value.UnsignedInt8(UnsignedInt8 pValue) Constructs an unsigned 8-bit integer object for the specified UnsignedInt8 value. -
Method Summary
-
Field Details
-
MIN_VALUE
public static short MIN_VALUEThe minimum value a unsigned integer of 8-bit value can be. Its value is '0'. -
MAX_VALUE
public static short MAX_VALUEThe maximum value a unsigned integer of 8-bit value can be. Its value is '255'.
-
-
Constructor Details
-
UnsignedInt8
public UnsignedInt8(byte pValue) Constructs an unsigned 8-bit integer object for the specified byte value.- Parameters:
pValue- The value of the created object- Throws:
IllegalArgumentException- If value does not fit into the MIN_VALUE .. MAX_VALUE range.
-
UnsignedInt8
public UnsignedInt8(short pValue) Constructs an unsigned 8-bit integer object for the specified short value.- Parameters:
pValue- The value of the created object- Throws:
IllegalArgumentException- If value does not fit into the MIN_VALUE .. MAX_VALUE range.
-
UnsignedInt8
Constructs an unsigned 8-bit integer object for the specified String value.- Parameters:
pValue- The value of the created object- Throws:
NumberFormatException- If value contains non numeric values.IllegalArgumentException- If value is not a null/empty string or if value does not fit into the MIN_VALUE .. MAX_VALUE range.
-
UnsignedInt8
Constructs an unsigned 8-bit integer object for the specified UnsignedInt8 value.- Parameters:
pValue- The value of the created object
-
-
Method Details
-
toString
-
equals
-
byteValue
-
shortValue
public short shortValue()- Overrides:
shortValuein classNumber
-
intValue
-
longValue
-
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-
hashCode
-
clone
-