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