public class MathUtils extends Object
| Constructor and Description |
|---|
MathUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compareLong(long x,
long y)
Deprecated.
In favor of
Long.compare(long, long) |
static int |
compareUnsignedLong(long x,
long y)
Deprecated.
In favor of
Long.compareUnsigned(long, long) |
static boolean |
lessThanUnsigned(long x,
long y)
Compares two numbers as unsigned 64-bit integers.
|
public static boolean lessThanUnsigned(long x,
long y)
x - left operandy - right operand@Deprecated public static int compareLong(long x, long y)
Long.compare(long, long)Long.compare from Java 7.@Deprecated public static int compareUnsignedLong(long x, long y)
Long.compareUnsigned(long, long)Long.compareUnsigned from Java 8.Copyright © 2021 Couchbase, Inc.. All rights reserved.