Package org.epics.util.number
Class UInteger
- java.lang.Object
-
- java.lang.Number
-
- org.epics.util.number.UInteger
-
- All Implemented Interfaces:
Serializable
public final class UInteger extends Number
A wrapper for a unsignedintvalue.- Author:
- carcassi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UInteger(int unsignedValue)Constructs a newly allocatedUIntegerobject that represent the specified unsignedintvalue.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doubledoubleValue()booleanequals(Object obj)floatfloatValue()inthashCode()intintValue()longlongValue()StringtoString()static StringtoString(int unsignedValue)Returns a newStringobject representing the specified unsignedint.static UIntegervalueOf(int unsignedValue)A wrapper for the given unsignedint.-
Methods inherited from class java.lang.Number
byteValue, shortValue
-
-
-
-
Method Detail
-
floatValue
public float floatValue()
- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein classNumber
-
valueOf
public static UInteger valueOf(int unsignedValue)
A wrapper for the given unsignedint.- Parameters:
unsignedValue- an unsignedintvalue- Returns:
- a
UIntegerinstance representingunsignedValue
-
toString
public static String toString(int unsignedValue)
Returns a newStringobject representing the specified unsignedint. The radix is assumed to be 10.- Parameters:
unsignedValue- the unsignedintto be converted- Returns:
- the string representation of the specified unsigned
int
-
-