Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for Arantes (0.25 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

       * we change the rate.
       */
      public void testWeNeverGetABurstMoreThanOneSec() {
        RateLimiter limiter = RateLimiter.create(1.0, stopwatch);
        int[] rates = {1000, 1, 10, 1000000, 10, 1};
        for (int rate : rates) {
          int oneSecWorthOfWork = rate;
          stopwatch.sleepMillis(rate * 1000);
          limiter.setRate(rate);
          long burst = measureTotalTimeMillis(limiter, oneSecWorthOfWork, new Random());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/JdkVersionProfileActivator.java

                } else if (token.endsWith(")")) {
                    ranges.add(new RangeValue(token.replace(")", ""), false));
                } else if (token.isEmpty()) {
                    ranges.add(new RangeValue("", false));
                }
            }
            if (ranges.size() < 2) {
                ranges.add(new RangeValue("99999999", false));
            }
            return ranges;
        }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RangeMap.java

    import javax.annotation.CheckForNull;
    
    /**
     * A mapping from disjoint nonempty ranges to non-null values. Queries look up the value associated
     * with the range (if any) that contains a specified key.
     *
     * <p>In contrast to {@link RangeSet}, no "coalescing" is done of {@linkplain
     * Range#isConnected(Range) connected} ranges, even if they are mapped to the same value.
     *
     * @author Louis Wasserman
     * @since 14.0
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

       * we change the rate.
       */
      public void testWeNeverGetABurstMoreThanOneSec() {
        RateLimiter limiter = RateLimiter.create(1.0, stopwatch);
        int[] rates = {1000, 1, 10, 1000000, 10, 1};
        for (int rate : rates) {
          int oneSecWorthOfWork = rate;
          stopwatch.sleepMillis(rate * 1000);
          limiter.setRate(rate);
          long burst = measureTotalTimeMillis(limiter, oneSecWorthOfWork, new Random());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

          }
        }
        ImmutableList<Range<Integer>> ranges = rangesBuilder.build();
        for (int i = -2; i <= 2; i++) {
          rangesBuilder.add(Range.closedOpen(i, i));
          rangesBuilder.add(Range.openClosed(i, i));
        }
        ImmutableList<Range<Integer>> subRanges = rangesBuilder.build();
        for (Range<Integer> range1 : ranges) {
          for (Range<Integer> range2 : ranges) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableRangeMap.java

        } else {
          Range<K> range = ranges.get(index);
          return range.contains(key) ? Maps.immutableEntry(range, values.get(index)) : null;
        }
      }
    
      @Override
      public Range<K> span() {
        if (ranges.isEmpty()) {
          throw new NoSuchElementException();
        }
        Range<K> firstRange = ranges.get(0);
        Range<K> lastRange = ranges.get(ranges.size() - 1);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

        for (Range<Integer> range : RANGES) {
          Map<Integer, Integer> model = Maps.newHashMap();
          putModel(model, range, 1);
          RangeMap<Integer, Integer> test = TreeRangeMap.create();
          test.put(range, 1);
          verify(model, test);
        }
      }
    
      public void testAllRangePairs() {
        for (Range<Integer> range1 : RANGES) {
          for (Range<Integer> range2 : RANGES) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 28K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ContiguousSet.java

    /**
     * A sorted set of contiguous values in a given {@link DiscreteDomain}. Example:
     *
     * <pre>{@code
     * ContiguousSet.create(Range.closed(5, 42), DiscreteDomain.integers())
     * }</pre>
     *
     * <p>Note that because bounded ranges over {@code int} and {@code long} values are so common, this
     * particular example can be written as just:
     *
     * <pre>{@code
     * ContiguousSet.closed(5, 42)
     * }</pre>
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

     * acquire(1000)} will result in exactly the same throttling, if any), but it affects the throttling
     * of the <i>next</i> request. I.e., if an expensive task arrives at an idle RateLimiter, it will be
     * granted immediately, but it is the <i>next</i> request that will experience extra throttling,
     * thus paying for the cost of the expensive task.
     *
     * @author Dimitris Andreou
     * @since 13.0
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  10. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/OverConstrainedVersionException.java

    import java.util.List;
    
    import org.apache.maven.artifact.Artifact;
    import org.apache.maven.artifact.repository.ArtifactRepository;
    import org.apache.maven.artifact.resolver.ArtifactResolutionException;
    
    /**
     * Occurs when ranges exclude each other and no valid value remains.
     *
     */
    public class OverConstrainedVersionException extends ArtifactResolutionException {
        public OverConstrainedVersionException(String msg, Artifact artifact) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 1.5K bytes
    - Viewed (0)
Back to top