Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for dividedBy (0.04 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

              UnsignedInteger unsignedDiv = aUnsigned.dividedBy(bUnsigned);
              assertThat(unsignedDiv.intValue()).isEqualTo(expected);
            }
          }
        }
      }
    
      public void testDivideByZeroThrows() {
        for (int a : TEST_INTS) {
          assertThrows(
              ArithmeticException.class,
              () -> {
                UnsignedInteger unused = UnsignedInteger.fromIntBits(a).dividedBy(UnsignedInteger.ZERO);
              });
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/UnsignedInteger.java

      }
    
      /**
       * Returns the result of dividing this by {@code val}.
       *
       * @throws ArithmeticException if {@code val} is zero
       * @since 14.0
       */
      public UnsignedInteger dividedBy(UnsignedInteger val) {
        return fromIntBits(UnsignedInts.divide(value, checkNotNull(val).value));
      }
    
      /**
       * Returns this mod {@code val}.
       *
       * @throws ArithmeticException if {@code val} is zero
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/UnsignedLong.java

        return fromLongBits(value * checkNotNull(val).value);
      }
    
      /**
       * Returns the result of dividing this by {@code val}.
       *
       * @since 14.0
       */
      public UnsignedLong dividedBy(UnsignedLong val) {
        return fromLongBits(UnsignedLongs.divide(value, checkNotNull(val).value));
      }
    
      /**
       * Returns this modulo {@code val}.
       *
       * @since 14.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/CollectorTester.java

      }
    
      /**
       * Verifies that the specified expected result is always produced by collecting the specified
       * inputs, regardless of how the elements are divided.
       */
      @SafeVarargs
      @CanIgnoreReturnValue
      @SuppressWarnings("nullness") // TODO(cpovirk): Remove after we fix whatever the bug is.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu May 15 21:47:56 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/CollectorTester.java

      }
    
      /**
       * Verifies that the specified expected result is always produced by collecting the specified
       * inputs, regardless of how the elements are divided.
       */
      @SafeVarargs
      @CanIgnoreReturnValue
      @SuppressWarnings("nullness") // TODO(cpovirk): Remove after we fix whatever the bug is.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu May 15 21:47:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top