Package gnu.math
Class UInt
- java.lang.Object
-
- java.lang.Number
-
- gnu.math.UnsignedPrim
-
- gnu.math.UInt
-
- All Implemented Interfaces:
Serializable
,Comparable<UInt>
public class UInt extends UnsignedPrim implements Comparable<UInt>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UInt(int ival)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(UInt other)
boolean
equals(Object obj)
int
intValue()
long
longValue()
int
numBits()
IntNum
toIntNum()
String
toString()
static String
toString(int ival)
static UInt
valueOf(int ival)
-
Methods inherited from class gnu.math.UnsignedPrim
doubleValue, floatValue, hashCode
-
Methods inherited from class java.lang.Number
byteValue, shortValue
-
-
-
-
Method Detail
-
numBits
public int numBits()
- Specified by:
numBits
in classUnsignedPrim
-
valueOf
public static UInt valueOf(int ival)
-
longValue
public long longValue()
- Overrides:
longValue
in classUnsignedPrim
-
toIntNum
public IntNum toIntNum()
- Overrides:
toIntNum
in classUnsignedPrim
-
toString
public static String toString(int ival)
-
compareTo
public int compareTo(UInt other)
- Specified by:
compareTo
in interfaceComparable<UInt>
-
-