javax.cim

Class UnsignedInteger32

public class UnsignedInteger32 extends Number implements Comparable<UnsignedInteger32>

The UnsignedInteger32 class wraps the value of an uint32. This class was created to represent an uint32 data type as defined by the CIM Infrastructure Specification. The specification is available from the DMTF (Distributed Management Task Force) at http://dmtf.org/
Field Summary
static longMAX_VALUE
The maximum value for an UnsignedInteger32.
static longMIN_VALUE
The minimum value for an UnsignedInteger32.
Constructor Summary
UnsignedInteger32(long pValue)
Constructs an unsigned 32-bit integer object for the specified long value.
UnsignedInteger32(String pValue)
Constructs an unsigned 32-bit integer object for the specified string.
Method Summary
intcompareTo(UnsignedInteger32 pOther)
Compares this UnsignedInteger32 with the specified UnsignedInteger32.

Field Detail

MAX_VALUE

public static final long MAX_VALUE
The maximum value for an UnsignedInteger32.

MIN_VALUE

public static final long MIN_VALUE
The minimum value for an UnsignedInteger32.

Constructor Detail

UnsignedInteger32

public UnsignedInteger32(long pValue)
Constructs an unsigned 32-bit integer object for the specified long value. Only the lower 32 bits are considered.

Parameters: pValue - the long to be represented as an unsigned 32-bit integer.

Throws: NumberFormatException - If the number is out of range.

UnsignedInteger32

public UnsignedInteger32(String pValue)
Constructs an unsigned 32-bit integer object for the specified string. Only the lower 32 bits are considered.

Parameters: pValue - The long to be represented as an unsigned 32-bit integer.

Throws: NumberFormatException - If the number is out of range.

Method Detail

compareTo

public int compareTo(UnsignedInteger32 pOther)
Compares this UnsignedInteger32 with the specified UnsignedInteger32. This method is provided in preference to individual methods for each of the six boolean comparison operators (<, ==, >, >=, !=, <=). The suggested idiom for performing these comparisons is: (x.compareTo(y) <op> 0), where <op> is one of the six comparison operators.

Parameters: pOther - Object to which this UnsignedInteger32 is to be compared. Throws a ClassCastException if the input object is not an UnsignedInteger32.

Returns: -1, 0 or 1 as this UnsignedInteger32 is numerically less than, equal to, or greater than val.

See Also: java.lang.Comparable#compareTo(Object o)

Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.