Package gnu.math
Class UShort
- java.lang.Object
-
- java.lang.Number
-
- gnu.math.UnsignedPrim
-
- gnu.math.UShort
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<UShort>
public class UShort extends UnsignedPrim implements java.lang.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(java.lang.Object obj)intintValue()longlongValue()intnumBits()shortshortValue()IntNumtoIntNum()java.lang.StringtoString()static java.lang.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 classjava.lang.Number
-
intValue
public int intValue()
- Specified by:
intValuein classjava.lang.Number
-
longValue
public long longValue()
- Overrides:
longValuein classUnsignedPrim
-
toIntNum
public IntNum toIntNum()
- Overrides:
toIntNumin classUnsignedPrim
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(UShort other)
- Specified by:
compareToin interfacejava.lang.Comparable<UShort>
-
toString
public static java.lang.String toString(short ival)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-