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