javax.cim

Class UnsignedInteger64

public class UnsignedInteger64 extends Number implements Comparable<UnsignedInteger64>

This class represents an UnsignedInteger64. A uint64 data type is defined by the (DMTF) CIM Infrastructure Specification (DSP004).
Field Summary
static BigIntegerMAX_VALUE
The maximum value for an UnsignedInteger64.
static BigIntegerMIN_VALUE
The minimum value for an UnsignedInteger64.
Constructor Summary
UnsignedInteger64(BigInteger pValue)
Constructs an unsigned 64-bit integer object for the specified BigInteger.
UnsignedInteger64(byte[] pValue)
Constructs an unsigned 64-bit integer object for the specified array of bytes.
UnsignedInteger64(String pValue)
Constructs an unsigned 64-bit integer object from the specified string.
Method Summary
BigIntegerbigIntegerValue()
Get the value as a BigInteger.
intcompareTo(UnsignedInteger64 pOther)
Compares this object with the specified object for order.

Field Detail

MAX_VALUE

public static final BigInteger MAX_VALUE
The maximum value for an UnsignedInteger64.

MIN_VALUE

public static final BigInteger MIN_VALUE
The minimum value for an UnsignedInteger64.

Constructor Detail

UnsignedInteger64

public UnsignedInteger64(BigInteger pValue)
Constructs an unsigned 64-bit integer object for the specified BigInteger. Only the lower 64 bits are considered.

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

Throws: NumberFormatException If the number is out of range.

UnsignedInteger64

public UnsignedInteger64(byte[] pValue)
Constructs an unsigned 64-bit integer object for the specified array of bytes. Only the lower 64 bits are considered.

Parameters: pValue The byte array to be represented as an unsigned 64-bit integer.

Throws: NumberFormatException If the number is out of range.

UnsignedInteger64

public UnsignedInteger64(String pValue)
Constructs an unsigned 64-bit integer object from the specified string. Only the lower 64 bits are considered.

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

Throws: NumberFormatException If the number is out of range.

Method Detail

bigIntegerValue

public BigInteger bigIntegerValue()
Get the value as a BigInteger.

Returns: BigInteger representation of this object.

compareTo

public int compareTo(UnsignedInteger64 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.