Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for multiplyExact (0.05 sec)

  1. guava/src/com/google/common/math/LongMath.java

       *
       * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use {@link
       * Math#multiplyExact(long, long)} instead. Note that if both arguments are {@code int} values,
       * writing {@code Math.multiplyExact(a, b)} will call the {@link Math#multiplyExact(int, int)}
       * overload, not {@link Math#multiplyExact(long, long)}. Also note that multiplying two {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/TopKSelector.java

        this.k = k;
        checkArgument(k >= 0, "k (%s) must be >= 0", k);
        checkArgument(k <= Integer.MAX_VALUE / 2, "k (%s) must be <= Integer.MAX_VALUE / 2", k);
        this.buffer = (T[]) new Object[Math.multiplyExact(k, 2)];
        this.bufferSize = 0;
        this.threshold = null;
      }
    
      /**
       * Adds {@code elem} as a candidate for the top {@code k} elements. This operation takes amortized
       * O(1) time.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/BloomFilter.java

           */
          @SuppressWarnings("EnumOrdinal")
          Strategy strategy = BloomFilterStrategies.values()[strategyOrdinal];
    
          LockFreeBitArray dataArray = new LockFreeBitArray(Math.multiplyExact(dataLength, 64L));
          for (int i = 0; i < dataLength; i++) {
            dataArray.putData(i, din.readLong());
          }
    
          return new BloomFilter<>(dataArray, numHashFunctions, funnel, strategy);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top