Package org.epics.util.number
Class UByte
- java.lang.Object
-
- java.lang.Number
-
- org.epics.util.number.UByte
-
- All Implemented Interfaces:
Serializable
public final class UByte extends Number
A wrapper for a unsignedbyte
value.- Author:
- carcassi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UByte(byte unsignedValue)
Constructs a newly allocatedUByte
object that represent the specified unsignedbyte
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(byte unsignedValue)
Returns a newString
object representing the specified unsignedbyte
.static UByte
valueOf(byte unsignedValue)
A wrapper for the given unsignedbyte
.-
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 UByte valueOf(byte unsignedValue)
A wrapper for the given unsignedbyte
.- Parameters:
unsignedValue
- an unsignedbyte
value- Returns:
- a
UByte
instance representingunsignedValue
-
toString
public static String toString(byte unsignedValue)
Returns a newString
object representing the specified unsignedbyte
. The radix is assumed to be 10.- Parameters:
unsignedValue
- the unsignedbyte
to be converted- Returns:
- the string representation of the specified unsigned
byte
-
-