Package org.sblim.wbem.cim
Class UnsignedInt8
- java.lang.Object
-
- java.lang.Number
-
- org.sblim.wbem.cim.UnsignedInt8
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class UnsignedInt8 extends java.lang.Number implements java.io.Serializable, java.lang.Cloneable
Implements a 8-bit unsigned integer object. The value range of an unsigned integer of 8-bit is '0 .. 255'.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnsignedInt8(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(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue()
java.lang.Object
clone()
double
doubleValue()
boolean
equals(java.lang.Object o)
float
floatValue()
int
hashCode()
int
intValue()
long
longValue()
short
shortValue()
java.lang.String
toString()
-
-
-
Constructor Detail
-
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:
java.lang.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:
java.lang.IllegalArgumentException
- If value does not fit into the MIN_VALUE .. MAX_VALUE range.
-
UnsignedInt8
public UnsignedInt8(java.lang.String pValue)
Constructs an unsigned 8-bit integer object for the specified String value.- Parameters:
pValue
- The value of the created object- Throws:
java.lang.NumberFormatException
- If value contains non numeric values.java.lang.IllegalArgumentException
- If value is not a null/empty string or if value does not fit into the MIN_VALUE .. MAX_VALUE range.
-
UnsignedInt8
public UnsignedInt8(UnsignedInt8 pValue)
Constructs an unsigned 8-bit integer object for the specified UnsignedInt8 value.- Parameters:
pValue
- The value of the created object
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
byteValue
public byte byteValue()
- Overrides:
byteValue
in classjava.lang.Number
-
shortValue
public short shortValue()
- Overrides:
shortValue
in classjava.lang.Number
-
intValue
public int intValue()
- Specified by:
intValue
in classjava.lang.Number
-
longValue
public long longValue()
- Specified by:
longValue
in classjava.lang.Number
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classjava.lang.Number
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classjava.lang.Number
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
-