Maximum value an UInt can represent
Ordering that compares the two specified UInt
values.
Ordering that compares the two specified UInt
values.
Returns a UInt
representing the same value as the specified
BigInteger
.
Returns a UInt
representing the same value as the specified
BigInteger
. This is the inverse operation of #toBigInt()
.
Equivalent to valueOf(value)
IllegalArgumentException
if value
is negative or value >= 2^32
Returns an UInt
that is equal to value
,
if possible.
Returns an UInt
that is equal to value
,
if possible. The inverse operation of #toLong
.
Equivalent to valueOf(value)
Adds an asJava
method that converts a Mango UInt
to a
Guava UnsignedInteger
.
Adds an asJava
method that converts a Mango UInt
to a
Guava UnsignedInteger
.
The returned Guava UnsignedInteger
contains a copy of the bits
from Mango UInt
.
the Mango UInt
to convert to a Guava UnsignedInteger
An object with an asJava
method that returns a Guava UnsignedInteger
view of the argument
Adds an asScala
method that converts a Guava UnsignedInteger
to a
Mango UInt
.
Adds an asScala
method that converts a Guava UnsignedInteger
to a
Mango UInt
.
The returned Mango UInt
contains a copy of the bits
from Guava UnsignedInteger
.
the Guava UnsignedInteger
to convert to a Mango UInt
An object with an asScala
method that returns a Mango UInt
view of the argument
Compares the two specified UInt
values.
Compares the two specified UInt
values.
the first UInt
to compare
the second UInt
to compare
a negative value if a
is less than b
; a positive value if a
is
greater than b
; or zero if they are equal
Returns the UInt
value represented by the given string.
Returns the UInt
value represented by the given string.
Accepts a decimal, hexadecimal, or octal number given by specifying the following prefix:
0x
HexDigits0X
HexDigits#
HexDigits0
OctalDigitsNumberFormatException
if the string does not contain a valid unsigned Int
value
Returns an UInt
corresponding to a given bit representation.
Returns an UInt
corresponding to a given bit representation.
The argument is interpreted as an unsigned 32-bit value. Specifically, the sign bit
of bits
is interpreted as a normal bit, and all other bits are treated as usual.
If the argument is nonnegative, the returned result will be equal to bits
,
otherwise, the result will be equal to 2^32 + bits
.
To represent unsigned decimal constants, consider #valueOf(Long)
instead.
Returns a string containing the supplied UInt
values separated by
separator
.
Returns a string containing the supplied UInt
values separated by
separator
. For example, join("-", 1, 2, 3)
returns the string "1-2-3"
.
the text that should appear between consecutive values in the resulting string (but not at the start or end)
an array of unsigned UInt
values, possibly empty
Returns a comparator that compares two arrays of UInt
values lexicographically.
Returns a comparator that compares two arrays of UInt
values lexicographically.
That is, it compares, using #compare(UInt, UInt)
), the first pair of values that follow
any common prefix, or when one array is a prefix of the other, treats the shorter array as the
lesser. For example, [] < [1] < [1, 2] < [2] < [1 << 31]
.
The returned comparator is inconsistent with Any#equals(OAny)
(since arrays
support only identity equality), but it is consistent with Arrays#equals(UInt[], UInt[])
.
Returns the greatest value present in array
, treating values as unsigned.
Returns the greatest value present in array
, treating values as unsigned.
a nonempty array of unsigned int
values
the value present in array
that is greater than or equal to every other value
in the array according to #compare
IllegalArgumentException
if array
is empty
Returns the least value present in array
, treating values as unsigned.
Returns the least value present in array
, treating values as unsigned.
a nonempty array of unsigned int
values
the value present in array
that is less than or equal to every other value in
the array according to #compare
IllegalArgumentException
if array
is empty
Returns the UInt
value represented by a string with the given radix.
Returns the UInt
value represented by a string with the given radix.
the string containing the unsigned integer representation to be parsed.
the radix to use while parsing string
; must be between
Character#MIN_RADIX
and Character#MAX_RADIX
.
NullPointerException
if string
is null
NumberFormatException
if the string does not contain a valid unsigned Int
, or
if supplied radix is invalid.
Returns the UInt
value represented by the given decimal string.
Returns the UInt
value represented by the given decimal string.
NullPointerException
if string
is null
NumberFormatException
if the string does not contain a valid unsigned Int
value
Returns a UInt
representing the same value as the specified
BigInteger
.
Returns a UInt
representing the same value as the specified
BigInteger
. This is the inverse operation of #toBigInt()
.
IllegalArgumentException
if value
is negative or value >= 2^32
Returns an UInt
that is equal to value
,
if possible.
Returns an UInt
that is equal to value
,
if possible. The inverse operation of #toLong
.
Static utility methods pertaining to
UInt
value classes that interpret values as unsigned (that is, any negative valuex
is treated as the positive value2^32 + x
).See the Guava User Guide article on unsigned primitive utilities.
0.10 (copied from Guava-libraries)