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