类 LongMath

java.lang.Object
ai.nextbillion.maps.internal.ratelimiter.LongMath

public final class LongMath
extends java.lang.Object
A class for arithmetic on values of type long.

This is a minimal port of Google Guava's com.google.common.math.LongMath, just sufficient to implement the ratelimiter classes.

  • 方法概要

    修饰符和类型 方法 说明
    static long saturatedAdd​(long a, long b)  

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 方法详细资料

    • saturatedAdd

      public static long saturatedAdd​(long a, long b)