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 int
compareTo(UShort other)
boolean
equals(Object obj)
int
intValue()
long
longValue()
int
numBits()
short
shortValue()
IntNum
toIntNum()
String
toString()
static String
toString(short ival)
static UShort
valueOf(short ival)
-
Methods inherited from class gnu.math.UnsignedPrim
doubleValue, floatValue, hashCode
-
-
-
-
Method Detail
-
numBits
public int numBits()
- Specified by:
numBits
in classUnsignedPrim
-
valueOf
public static UShort valueOf(short ival)
-
shortValue
public short shortValue()
- Overrides:
shortValue
in classNumber
-
longValue
public long longValue()
- Overrides:
longValue
in classUnsignedPrim
-
toIntNum
public IntNum toIntNum()
- Overrides:
toIntNum
in classUnsignedPrim
-
compareTo
public int compareTo(UShort other)
- Specified by:
compareTo
in interfaceComparable<UShort>
-
toString
public static String toString(short ival)
-
-