java.lang.Object | |
↳ | com.pnfsoftware.jeb.util.primitives.Longs |
Utility methods for long
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Longs() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static int |
compareUnsigned(long x, long y)
Compare two longs as unsigned.
| ||||||||||
static long |
divUnsigned(long dividend, long divisor)
Divide two longs treated as unsigned.
| ||||||||||
static long |
fromInts(int v0, int v1)
Create a long from two ints.
| ||||||||||
static long |
maxUnsigned(long x, long y)
Retrieve the max of two longs treated as unsigned.
| ||||||||||
static long |
minUnsigned(long x, long y)
Retrieve the min of two longs treated as unsigned.
| ||||||||||
static long |
remUnsigned(long dividend, long divisor)
Get the division remainder of two longs treated as unsigned.
| ||||||||||
static int[] |
toInts(long v)
Create two ints from a long.
| ||||||||||
static BigInteger |
toUnsignedBigInteger(long v)
Convert a long treated as unsigned to a big integer.
| ||||||||||
static String |
toUnsignedString(long value)
Convert a long to its unsigned decimal string representation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Compare two longs as unsigned.
Divide two longs treated as unsigned.
Create a long from two ints. See toInts(long)
for the reverse operation.
Retrieve the max of two longs treated as unsigned.
Retrieve the min of two longs treated as unsigned.
Get the division remainder of two longs treated as unsigned.
Create two ints from a long. See fromInts(int, int)
for the reverse operation.
Convert a long treated as unsigned to a big integer.
Convert a long to its unsigned decimal string representation.