public final class MathUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
checkedMultiply(long a,
long b)
Returns the product of
a and b, provided it does not overflow. |
public static long checkedMultiply(long a,
long b)
a and b, provided it does not overflow.
Borrowed from Google Guava since Bukkit uses an old version.
ArithmeticException - if a * b overflows in signed long arithmeticCopyright © 2015. All Rights Reserved.