Class 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.

  • Method Summary

    Modifier and Type Method Description
    static long saturatedAdd​(long a, long b)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • saturatedAdd

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