Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 134 for Powers (0.23 sec)

  1. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.SortedLists.KeyAbsentBehavior.NEXT_HIGHER;
    import static com.google.common.collect.SortedLists.KeyAbsentBehavior.NEXT_LOWER;
    import static com.google.common.collect.SortedLists.KeyPresentBehavior.ANY_PRESENT;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.Beta;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/collect/SetContainsBenchmark.java

     *
     * @author Kevin Bourrillion
     */
    public class SetContainsBenchmark {
      // Start at 4.88 then multiply by 2*2^phi <evil cackle> - The goal is be uniform
      // yet visit a variety of "values-relative-to-the-next-power-of-2"
      @Param({"5", "30", "180", "1100", "6900", "43000", "260000"}) // "1600000", "9800000"
      private int size;
    
      // TODO(kevinb): look at exact (==) hits vs. equals() hits?
      @Param({"0.2", "0.8"})
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.4K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/collect/SetContainsBenchmark.java

     *
     * @author Kevin Bourrillion
     */
    public class SetContainsBenchmark {
      // Start at 4.88 then multiply by 2*2^phi <evil cackle> - The goal is be uniform
      // yet visit a variety of "values-relative-to-the-next-power-of-2"
      @Param({"5", "30", "180", "1100", "6900", "43000", "260000"}) // "1600000", "9800000"
      private int size;
    
      // TODO(kevinb): look at exact (==) hits vs. equals() hits?
      @Param({"0.2", "0.8"})
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/AppendableWriterTest.java

        StringBuilder builder = new StringBuilder();
        Writer writer = new AppendableWriter(builder);
    
        writer.write("Hello".toCharArray());
        writer.write(',');
        writer.write(0xBEEF0020); // only lower 16 bits are important
        writer.write("Wo");
        writer.write("Whirled".toCharArray(), 3, 2);
        writer.write("Mad! Mad, I say", 2, 2);
    
        assertEquals("Hello, World!", builder.toString());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  5. .github/ISSUE_TEMPLATE/feature_enhancement_request.yaml

            a full-time Guava team member. [Feedback](https://stackoverflow.com/a/4543114) from our
            users indicates that they really appreciate Guava's high power-to-weight ratio. It's
            important to us to keep Guava as easy to use and understand as we can. That means boiling
            features down to compact but powerful abstractions, and controlling feature bloat carefully.
    
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

        return RANDOM_SOURCE.nextBoolean() ? result : result.negate();
      }
    
      /**
       * Chooses a number in (-2^numBits, 2^numBits) at random, with density concentrated in numbers of
       * lower magnitude.
       */
      static BigInteger randomBigInteger(int numBits) {
        while (true) {
          if (RANDOM_SOURCE.nextBoolean()) {
            return randomNonNegativeBigInteger(numBits);
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RangeSet.java

       * of upper bound).
       */
      Set<Range<C>> asRanges();
    
      /**
       * Returns a descending view of the {@linkplain Range#isConnected disconnected} ranges that make
       * up this range set. The returned set may be empty. The iterators returned by its {@link
       * Iterable#iterator} method return the ranges in decreasing order of lower bound (equivalently,
       * of upper bound).
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

        int index =
            SortedLists.binarySearch(
                ranges,
                Range::lowerBound,
                Cut.belowValue(key),
                KeyPresentBehavior.ANY_PRESENT,
                KeyAbsentBehavior.NEXT_LOWER);
        if (index == -1) {
          return null;
        } else {
          Range<K> range = ranges.get(index);
          return range.contains(key) ? values.get(index) : null;
        }
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

      }
    
      public void testCountOverflow_doesNotThrow() {
        StatsAccumulator accumulator = new StatsAccumulator();
        accumulator.add(ONE_VALUE);
        for (int power = 1; power < Long.SIZE - 1; power++) {
          accumulator.addAll(accumulator.snapshot());
        }
        // Should overflow without throwing.
        accumulator.addAll(accumulator.snapshot());
        assertThat(accumulator.count()).isLessThan(0L);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 34K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

            // Pass
          }
        }
      }
    
      public void testFalsePositivesForNextEscapedIndex() {
        UnicodeEscaper e =
            new UnicodeEscaper() {
              // Canonical escaper method that only escapes lower case ASCII letters.
              @Override
              protected char @Nullable [] escape(int cp) {
                return ('a' <= cp && cp <= 'z') ? new char[] {Character.toUpperCase((char) cp)} : null;
              }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
Back to top