javax.cim

Class UnsignedInteger16

public class UnsignedInteger16 extends Number implements Comparable<UnsignedInteger16>

This class represents an UnsignedInteger16. A uint16 data type is defined by the (DMTF) CIM Infrastructure Specification (DSP004).
Field Summary
static intMAX_VALUE
The maximum value for an UnsignedInteger16.
static intMIN_VALUE
The minimum value for an UnsignedInteger16.
Constructor Summary
UnsignedInteger16(int pValue)
Constructs an unsigned 16-bit integer object for the specified int value.
UnsignedInteger16(String pValue)
Constructs an unsigned 16-bit integer object for the specified string.
Method Summary
intcompareTo(UnsignedInteger16 pOther)
Compares this object with the specified object for order.

Field Detail

MAX_VALUE

public static final int MAX_VALUE
The maximum value for an UnsignedInteger16.

MIN_VALUE

public static final int MIN_VALUE
The minimum value for an UnsignedInteger16.

Constructor Detail

UnsignedInteger16

public UnsignedInteger16(int pValue)
Constructs an unsigned 16-bit integer object for the specified int value. Only the lower 16 bits are considered.

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

Throws: NumberFormatException If the number is out of range.

UnsignedInteger16

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

Parameters: pValue The string to be represented as an unsigned 16-bit integer.

Throws: NumberFormatException If the number is out of range.

Method Detail

compareTo

public int compareTo(UnsignedInteger16 pOther)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Parameters: pOther The Object to be compared.

Returns: A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

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