Returns the result of multiplying this and that
.
Returns the result of multiplying this and that
. If the result would have more than 32
bits, returns the low 32 bits of the result.
Returns the result of adding this and that
.
Returns the result of adding this and that
. If the result would have more than 32 bits,
returns the low 32 bits of the result.
Returns the result of subtracting this and that
.
Returns the result of subtracting this and that
. If the result would be negative,
returns the low 32 bits of the result.
Returns the result of dividing this by that
.
Returns the result of dividing this by that
.
ArithmeticException
if that
is zero
Compares this unsigned Int to another unsigned Int.
Compares this unsigned Int to another unsigned Int.
Returns 0
if they are equal, a negative number if this < other
,
and a positive number if this > other
.
Returns this mod that
.
Returns this mod that
.
ArithmeticException
if that
is zero
Returns the value of this UInt
as a BigInt
.
Returns the value of this UInt
as a BigInt
.
Returns the value of this UInt
as a Double
, analogous to a widening
primitive conversion from Int
to Double
, and correctly rounded.
Returns the value of this UInt
as a Double
, analogous to a widening
primitive conversion from Int
to Double
, and correctly rounded.
Returns the value of this UInt
as a Float
, analogous to a widening
primitive conversion from Int
to Float
, and correctly rounded.
Returns the value of this UInt
as a Float
, analogous to a widening
primitive conversion from Int
to Float
, and correctly rounded.
Returns the value of this UInt
as an Int
.
Returns the value of this UInt
as an Int
. This is an inverse
operation to #fromIntBits
.
Note that if this UInt
holds a value >= 2^31
, the returned value
will be equal to this - 2^32
.
Returns the value of this UInt
as a Long
, when treated as unsigned.
Returns the value of this UInt
as a Long
, when treated as unsigned.
Returns a string representation of the UInt
value, in base radix
.
Returns a string representation of the UInt
value, in base radix
.
If radix < Character.MIN_RADIX
or radix > Character.MAX_RADIX
, the radix
10
is used.
Returns a string representation of the UInt
value, in base 10.
Returns a string representation of the UInt
value, in base 10.
A value class for unsigned
Int
values, supporting arithmetic operations.See the Guava User Guide article on unsigned primitive utilities.
0.10 (copied from Guava-libraries)