com.sun.wbem.cim
Class UnsignedInt32

java.lang.Object
  |
  +--java.lang.Number
        |
        +--com.sun.wbem.cim.UnsignedInt32

public class UnsignedInt32
extends java.lang.Number
implements java.io.Serializable

Creates and instantiates an unsigned 32-bit integer object. The CIMDataType class uses this class to instantiate valid CIM data types.

Since:
WBEM 1.0
See Also:
Serialized Form

Field Summary
static long MAX_VALUE
          the maximum value this long can have
static long MIN_VALUE
          the minimum value this long can have
 
Constructor Summary
UnsignedInt32(long a)
          Constructor creates an unsigned 32-bit integer object for the specified long value.
UnsignedInt32(java.lang.String a)
          Constructor creates an unsigned 32-bit integer object for the specified string.
 
Method Summary
 byte byteValue()
          Returns the value of this unsigned 32-bit integer object as a byte.
 double doubleValue()
          Returns the value of this unsigned 32-bit integer object as a double
 boolean equals(java.lang.Object o)
          Compares this unsigned 32-bit integer object with the specified object for equality
 float floatValue()
          Returns the value of this unsigned 32-bit integer object as a float
 int hashCode()
          Computes the hash code for this unsigned 32-bit integer object
 int intValue()
          Returns the value of this unsigned 32-bit integer object as an int This method returns the least significant 32 bits.
 long longValue()
          Returns the value of this unsigned 32-bit integer object as a long This method returns the least significant 64 bits.
 short shortValue()
          Returns the value of this unsigned 32-bit integer object as a short This method returns the least significant 16 bits.
 java.lang.String toString()
          Returns the text representation of this unsigned 32-bit integer object
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_VALUE

public static final long MAX_VALUE
the maximum value this long can have

MIN_VALUE

public static final long MIN_VALUE
the minimum value this long can have
Constructor Detail

UnsignedInt32

public UnsignedInt32(long a)
Constructor creates an unsigned 32-bit integer object for the specified long value. Only the bottom 32 bits are considered.

UnsignedInt32

public UnsignedInt32(java.lang.String a)
              throws java.lang.NumberFormatException
Constructor creates an unsigned 32-bit integer object for the specified string. Only the bottom 32 bits are considered.
Method Detail

byteValue

public byte byteValue()
Returns the value of this unsigned 32-bit integer object as a byte. This method returns the least significant 8 bits.
Overrides:
byteValue in class java.lang.Number
Returns:
byte the byte value of this unsigned 32-bit integer object

shortValue

public short shortValue()
Returns the value of this unsigned 32-bit integer object as a short This method returns the least significant 16 bits.
Overrides:
shortValue in class java.lang.Number
Returns:
short value of this unsigned 32-bit integer object as a short

intValue

public int intValue()
Returns the value of this unsigned 32-bit integer object as an int This method returns the least significant 32 bits.
Overrides:
intValue in class java.lang.Number
Returns:
int value of this unsigned 32-bit integer object as an int

longValue

public long longValue()
Returns the value of this unsigned 32-bit integer object as a long This method returns the least significant 64 bits.
Overrides:
longValue in class java.lang.Number
Returns:
long value of this unsigned 32-bit integer object as a long

floatValue

public float floatValue()
Returns the value of this unsigned 32-bit integer object as a float
Overrides:
floatValue in class java.lang.Number
Returns:
float value of this unsigned 32-bit integer object as a float

doubleValue

public double doubleValue()
Returns the value of this unsigned 32-bit integer object as a double
Overrides:
doubleValue in class java.lang.Number
Returns:
double value of this unsigned 32-bit integer object as a double

toString

public java.lang.String toString()
Returns the text representation of this unsigned 32-bit integer object
Overrides:
toString in class java.lang.Object
Returns:
String text representation of this unsigned 32-bit integer

hashCode

public int hashCode()
Computes the hash code for this unsigned 32-bit integer object
Overrides:
hashCode in class java.lang.Object
Returns:
int the integer representing the hash code for this unsigned 32-bit integer

equals

public boolean equals(java.lang.Object o)
Compares this unsigned 32-bit integer object with the specified object for equality
Overrides:
equals in class java.lang.Object
Returns:
boolen true if the specified object is an unsigned 32-bit integer. Otherwise, false.