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 unsignedbytevalue.- Author:
- carcassi
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UByte(byte unsignedValue)Constructs a newly allocatedUByteobject that represent the specified unsignedbytevalue.
-
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(byte unsignedValue)Returns a newStringobject representing the specified unsignedbyte.static UBytevalueOf(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:
floatValuein classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein classNumber
-
valueOf
public static UByte valueOf(byte unsignedValue)
A wrapper for the given unsignedbyte.- Parameters:
unsignedValue- an unsignedbytevalue- Returns:
- a
UByteinstance representingunsignedValue
-
toString
public static String toString(byte unsignedValue)
Returns a newStringobject representing the specified unsignedbyte. The radix is assumed to be 10.- Parameters:
unsignedValue- the unsignedbyteto be converted- Returns:
- the string representation of the specified unsigned
byte
-
-