Maximum value an ULong can represent
Ordering that compares the two specified ULong
values.
Ordering that compares the two specified ULong
values.
Returns a ULong
representing the same value as the specified
BigInteger
.
Returns a ULong
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^64
Returns an ULong
representing the same value as the specified Long
.
Returns an ULong
representing the same value as the specified Long
.
Equivalent to valueOf(value)
IllegalArgumentException
if value
is negative
Adds an asJava
method that converts a Mango ULong
to a
Guava UnsignedLong
.
Adds an asJava
method that converts a Mango ULong
to a
Guava UnsignedLong
.
The returned Guava UnsignedLong
contains a copy of the bits
from Mango ULong
.
An object with an asJava
method that returns a Guava UnsignedLong
view of the argument
Adds an asScala
method that converts a Guava UnsignedLong
to a
Mango ULong
.
Adds an asScala
method that converts a Guava UnsignedLong
to a
Mango ULong
.
The returned Mango ULong
contains a copy of the bits
from Guava UnsignedLong
.
An object with an asScala
method that returns a Mango ULong
view of the argument
Compares the two specified Long
values, treating them as unsigned values between
0
and 2^64 - 1
inclusive.
Compares the two specified Long
values, treating them as unsigned values between
0
and 2^64 - 1
inclusive.
the first ULong
to compare
the second ULong
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 ULong
value represented by the given string.
Returns the ULong
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 ULong
value
Returns an ULong
corresponding to a given bit representation.
Returns an ULong
corresponding to a given bit representation.
The argument is interpreted as an unsigned 64-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^64 + bits
.
To represent decimal constants less than 2^63
, consider #valueOf(long)
instead.
Returns a string containing the supplied ULong
values separated by
separator
.
Returns a string containing the supplied ULong
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 ULong
values, possibly empty
Returns a comparator that compares two arrays of ULong
values
lexicographically.
Returns a comparator that compares two arrays of ULong
values
lexicographically. That is, it compares, using #compare(long, long)
, 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, [] < [1L] < [1L, 2L] < [2L] < [1L << 63]
.
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 ULong
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 ULong
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 an ULong
holding the value of the specified String
, parsed as
an ULong
value in the specified radix.
Returns an ULong
holding the value of the specified String
, parsed as
an ULong
value in the specified radix.
NumberFormatException
if the string does not contain a parsable ULong
value, or radix
is not between Character#MIN_RADIX
and
Character#MAX_RADIX
Returns an ULong
holding the value of the specified String
, parsed as
an ULong
value.
Returns an ULong
holding the value of the specified String
, parsed as
an ULong
value.
NumberFormatException
if the string does not contain a parsable ULong
value
Returns a ULong
representing the same value as the specified
BigInteger
.
Returns a ULong
representing the same value as the specified
BigInteger
. This is the inverse operation of #toBigInt
.
IllegalArgumentException
if value
is negative or value >= 2^64
Returns an ULong
representing the same value as the specified Long
.
Returns an ULong
representing the same value as the specified Long
.
IllegalArgumentException
if value
is negative
Static utility methods pertaining to
Long
primitives that interpret values as unsigned (that is, any negative valuex
is treated as the positive value2^64 + x
).In addition, this class provides several static methods for converting a
Long
to aString
and aString
to aLong
that treat theLong
as an unsigned number.See the Guava User Guide article on unsigned primitive utilities.
0.10 (copied from Guava-libraries)