Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for checkNoOverflow (0.12 seconds)

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

        }
      }
    
      static void checkNoOverflow(boolean condition, String methodName, int a, int b) {
        if (!condition) {
          throw new ArithmeticException("overflow: " + methodName + "(" + a + ", " + b + ")");
        }
      }
    
      static void checkNoOverflow(boolean condition, String methodName, long a, long b) {
        if (!condition) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/math/MathPreconditionsTest.java

      }
    
      public void testCheckNoOverflow_success() {
        MathPreconditions.checkNoOverflow(true, "testCheckNoOverflow_success", 0, 0);
      }
    
      public void testCheckNoOverflow_failure() {
        ArithmeticException expected =
            assertThrows(
                ArithmeticException.class,
                () -> MathPreconditions.checkNoOverflow(false, "testCheckNoOverflow_failure", 0, 0));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java

      }
    
      public void testCheckNoOverflow_success() {
        MathPreconditions.checkNoOverflow(true, "testCheckNoOverflow_success", 0, 0);
      }
    
      public void testCheckNoOverflow_failure() {
        ArithmeticException expected =
            assertThrows(
                ArithmeticException.class,
                () -> MathPreconditions.checkNoOverflow(false, "testCheckNoOverflow_failure", 0, 0));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 8.1K bytes
    - Click Count (0)
Back to Top