类 MathUtils
java.lang.Object
org.apache.pulsar.client.util.MathUtils
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static intceilDiv(int x, int y) Ceil version of Math.floorDiv().static intsignSafeMod(long dividend, int divisor) Compute sign safe mod.
-
构造器详细资料
-
MathUtils
public MathUtils()
-
-
方法详细资料
-
signSafeMod
public static int signSafeMod(long dividend, int divisor) Compute sign safe mod.- 参数:
dividend-divisor-- 返回:
-
ceilDiv
public static int ceilDiv(int x, int y) Ceil version of Math.floorDiv().- 参数:
x- the dividendy- the divisor- 返回:
- the smallest value that is larger than or equal to the algebraic quotient.
-