Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for checkedAdd (0.19 seconds)

  1. android/guava/src/com/google/common/math/IntMath.java

       * Math#addExact(int, int)} instead.
       *
       * @throws ArithmeticException if {@code a + b} overflows in signed {@code int} arithmetic
       */
      @InlineMe(replacement = "Math.addExact(a, b)")
      public static int checkedAdd(int a, int b) {
        return Math.addExact(a, b);
      }
    
      /**
       * Returns the difference of {@code a} and {@code b}, provided it does not overflow.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/math/LongMath.java

       *
       * @throws ArithmeticException if {@code a + b} overflows in signed {@code long} arithmetic
       */
      @InlineMe(replacement = "Math.addExact(a, b)")
      public static long checkedAdd(long a, long b) {
        return Math.addExact(a, b);
      }
    
      /**
       * Returns the difference of {@code a} and {@code b}, provided it does not overflow.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 09 23:01:02 GMT 2026
    - 46.8K bytes
    - Click Count (0)
Back to Top