|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
javax.cim.UnsignedInteger32
public class 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 long |
MAX_VALUE
The maximum value for an UnsignedInteger32. |
static long |
MIN_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 | |
---|---|
byte |
byteValue()
Returns the value of this unsigned integer object as a byte. |
int |
compareTo(UnsignedInteger32 pOther)
Compares this UnsignedInteger32 with the specified
UnsignedInteger32 . |
double |
doubleValue()
|
boolean |
equals(Object pObj)
|
float |
floatValue()
|
int |
intValue()
|
long |
longValue()
Returns the value of this unsigned integer object as a long . |
short |
shortValue()
Returns the value of this unsigned integer object as a short. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long MAX_VALUE
public static final long MIN_VALUE
Constructor Detail |
---|
public UnsignedInteger32(long pValue) throws NumberFormatException
pValue
- - the long to be represented as an unsigned 32-bit integer.
NumberFormatException
- - If the number is out of range.public UnsignedInteger32(String pValue) throws NumberFormatException
pValue
- - The long to be represented as an unsigned 32-bit integer.
NumberFormatException
- - If the number is out of range.Method Detail |
---|
public boolean equals(Object pObj)
equals
in class Object
Object.equals(java.lang.Object)
public byte byteValue()
byteValue
in class Number
public short shortValue()
shortValue
in class Number
public long longValue()
long
.
longValue
in class Number
long
.public double doubleValue()
doubleValue
in class Number
Number.doubleValue()
public float floatValue()
floatValue
in class Number
Number.floatValue()
public int intValue()
intValue
in class Number
Number.intValue()
public int compareTo(UnsignedInteger32 pOther)
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.
compareTo
in interface Comparable<UnsignedInteger32>
pOther
- - Object to which this UnsignedInteger32
is to be
compared. Throws a ClassCastException
if the
input object is not an UnsignedInteger32
.
UnsignedInteger32
is numerically
less than, equal to, or greater than val.Comparable.compareTo(Object o)
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |