org.sblim.wbem.cim
Class UnsignedInt64

java.lang.Object
  extended by java.lang.Number
      extended by org.sblim.wbem.cim.UnsignedInt64
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class UnsignedInt64
extends java.lang.Number
implements java.io.Serializable, java.lang.Cloneable

Implements a 64-bit unsigned integer object. The value range of an unsigned integer of 64-bit is '0 .. 18446744073709551615'.

See Also:
Serialized Form

Field Summary
static java.math.BigInteger MAX_VALUE
          The maximum value a unsigned integer of 64-bit value can be.
static java.math.BigInteger MIN_VALUE
          The minimum value a unsigned integer of 64-bit value can be.
 
Constructor Summary
UnsignedInt64(java.math.BigInteger pValue)
          Constructs an unsigned 64-bit integer object for the specified BigInteger value.
UnsignedInt64(byte pValue)
          Constructs an unsigned 64-bit integer object for the specified byte value.
UnsignedInt64(int pValue)
          Constructs an unsigned 64-bit integer object for the specified int value.
UnsignedInt64(long pValue)
          Constructs an unsigned 64-bit integer object for the specified long value.
UnsignedInt64(short pValue)
          Constructs an unsigned 64-bit integer object for the specified short value.
UnsignedInt64(java.lang.String pValue)
          Constructs an unsigned 64-bit integer object for the specified String value.
UnsignedInt64(UnsignedInt16 pValue)
          Constructs an unsigned 64-bit integer object for the specified UnsignedInt16 value.
UnsignedInt64(UnsignedInt32 pValue)
          Constructs an unsigned 64-bit integer object for the specified UnsignedInt32 value.
UnsignedInt64(UnsignedInt64 pValue)
          Constructs an unsigned 64-bit integer object for the specified UnsignedInt64 value.
UnsignedInt64(UnsignedInt8 pValue)
          Constructs an unsigned 64-bit integer object for the specified UnsignedInt8 value.
 
Method Summary
 java.math.BigInteger bigIntValue()
          Returns the value if this unsigned integer as a BigInteger.
 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()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MIN_VALUE

public static java.math.BigInteger MIN_VALUE
The minimum value a unsigned integer of 64-bit value can be. Its value is '0'.


MAX_VALUE

public static java.math.BigInteger MAX_VALUE
The maximum value a unsigned integer of 64-bit value can be. Its value is '18446744073709551615'.

Constructor Detail

UnsignedInt64

public UnsignedInt64(byte pValue)
Constructs an unsigned 64-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.

UnsignedInt64

public UnsignedInt64(short pValue)
Constructs an unsigned 64-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.

UnsignedInt64

public UnsignedInt64(int pValue)
Constructs an unsigned 64-bit integer object for the specified int 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.

UnsignedInt64

public UnsignedInt64(long pValue)
Constructs an unsigned 64-bit integer object for the specified long 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.

UnsignedInt64

public UnsignedInt64(java.math.BigInteger pValue)
Constructs an unsigned 64-bit integer object for the specified BigInteger 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.

UnsignedInt64

public UnsignedInt64(java.lang.String pValue)
Constructs an unsigned 64-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.

UnsignedInt64

public UnsignedInt64(UnsignedInt8 pValue)
Constructs an unsigned 64-bit integer object for the specified UnsignedInt8 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.

UnsignedInt64

public UnsignedInt64(UnsignedInt16 pValue)
Constructs an unsigned 64-bit integer object for the specified UnsignedInt16 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.

UnsignedInt64

public UnsignedInt64(UnsignedInt32 pValue)
Constructs an unsigned 64-bit integer object for the specified UnsignedInt32 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.

UnsignedInt64

public UnsignedInt64(UnsignedInt64 pValue)
Constructs an unsigned 64-bit integer object for the specified UnsignedInt64 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.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

byteValue

public byte byteValue()
Overrides:
byteValue in class java.lang.Number

shortValue

public short shortValue()
Overrides:
shortValue in class java.lang.Number

intValue

public int intValue()
Specified by:
intValue in class java.lang.Number

longValue

public long longValue()
Specified by:
longValue in class java.lang.Number

floatValue

public float floatValue()
Specified by:
floatValue in class java.lang.Number

doubleValue

public double doubleValue()
Specified by:
doubleValue in class java.lang.Number

bigIntValue

public java.math.BigInteger bigIntValue()
Returns the value if this unsigned integer as a BigInteger.

Returns:
This UnsignedInt64 in a BigInteger representation.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object


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