类 MathUtils

java.lang.Object
org.apache.pulsar.client.util.MathUtils

public class MathUtils extends Object
  • 构造器详细资料

    • 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 dividend
      y - the divisor
      返回:
      the smallest value that is larger than or equal to the algebraic quotient.