Package org.epics.util.number
Class ULong
- java.lang.Object
-
- java.lang.Number
-
- org.epics.util.number.ULong
-
- All Implemented Interfaces:
Serializable
public final class ULong extends Number
A wrapper for a unsignedlong
value.- Author:
- carcassi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ULong(long unsignedValue)
Constructs a newly allocatedULong
object that represent the specified unsignedlong
value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BigInteger
bigIntegerValue()
double
doubleValue()
boolean
equals(Object obj)
float
floatValue()
int
hashCode()
int
intValue()
long
longValue()
String
toString()
static String
toString(long unsignedValue)
Returns a newString
object representing the specified unsignedlong
.static ULong
valueOf(long unsignedValue)
A wrapper for the given unsignedlong
.-
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
-
bigIntegerValue
public BigInteger bigIntegerValue()
-
valueOf
public static ULong valueOf(long unsignedValue)
A wrapper for the given unsignedlong
.- Parameters:
unsignedValue
- an unsignedlong
value- Returns:
- a
ULong
instance representingunsignedValue
-
toString
public static String toString(long unsignedValue)
Returns a newString
object representing the specified unsignedlong
. The radix is assumed to be 10.- Parameters:
unsignedValue
- the unsignedlong
to be converted- Returns:
- the string representation of the specified unsigned
long
-
-