Package gnu.math
Class UShort
- java.lang.Object
-
- java.lang.Number
-
- gnu.math.UnsignedPrim
-
- gnu.math.UShort
-
- All Implemented Interfaces:
Serializable,Comparable<UShort>
public class UShort extends UnsignedPrim implements Comparable<UShort>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UShort(short ival)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(UShort other)booleanequals(Object obj)intintValue()longlongValue()intnumBits()shortshortValue()IntNumtoIntNum()StringtoString()static StringtoString(short ival)static UShortvalueOf(short ival)-
Methods inherited from class gnu.math.UnsignedPrim
doubleValue, floatValue, hashCode
-
-
-
-
Method Detail
-
numBits
public int numBits()
- Specified by:
numBitsin classUnsignedPrim
-
valueOf
public static UShort valueOf(short ival)
-
shortValue
public short shortValue()
- Overrides:
shortValuein classNumber
-
longValue
public long longValue()
- Overrides:
longValuein classUnsignedPrim
-
toIntNum
public IntNum toIntNum()
- Overrides:
toIntNumin classUnsignedPrim
-
compareTo
public int compareTo(UShort other)
- Specified by:
compareToin interfaceComparable<UShort>
-
toString
public static String toString(short ival)
-
-