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 unsignedint
value.- Author:
- carcassi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UInteger(int unsignedValue)
Constructs a newly allocatedUInteger
object that represent the specified unsignedint
value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
doubleValue()
boolean
equals(Object obj)
float
floatValue()
int
hashCode()
int
intValue()
long
longValue()
String
toString()
static String
toString(int unsignedValue)
Returns a newString
object representing the specified unsignedint
.static UInteger
valueOf(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:
floatValue
in classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classNumber
-
valueOf
public static UInteger valueOf(int unsignedValue)
A wrapper for the given unsignedint
.- Parameters:
unsignedValue
- an unsignedint
value- Returns:
- a
UInteger
instance representingunsignedValue
-
toString
public static String toString(int unsignedValue)
Returns a newString
object representing the specified unsignedint
. The radix is assumed to be 10.- Parameters:
unsignedValue
- the unsignedint
to be converted- Returns:
- the string representation of the specified unsigned
int
-
-