Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 33 for getUnchecked (0.27 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        // seed the map, so its segment's count > 0
        cache.getUnchecked("a");
        shouldWait.set(true);
    
        CountDownLatch computationStarted = new CountDownLatch(1);
        CountDownLatch computationComplete = new CountDownLatch(1);
        new Thread(
                () -> {
                  computationStarted.countDown();
                  cache.getUnchecked("b");
                  computationComplete.countDown();
                })
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        // seed the map, so its segment's count > 0
        cache.getUnchecked("a");
        shouldWait.set(true);
    
        CountDownLatch computationStarted = new CountDownLatch(1);
        CountDownLatch computationComplete = new CountDownLatch(1);
        new Thread(
                () -> {
                  computationStarted.countDown();
                  cache.getUnchecked("b");
                  computationComplete.countDown();
                })
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/cache/LocalCache.java

        }
    
        @Override
        public V get(K key) throws ExecutionException {
          return autoDelegate.get(key);
        }
    
        @Override
        public V getUnchecked(K key) {
          return autoDelegate.getUnchecked(key);
        }
    
        @Override
        public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {
          return autoDelegate.getAll(keys);
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  4. guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

        // value seen so far
        while (cache.getUnchecked(nextRandomKey()) < maximumSize) {}
    
        requests.set(0);
        misses.set(0);
      }
    
      @Benchmark
      int time(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += cache.getUnchecked(nextRandomKey());
        }
        requests.addAndGet(reps);
        return dummy;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.4K bytes
    - Click Count (0)
  5. guava/src/com/google/common/cache/LocalCache.java

        }
    
        @Override
        public V get(K key) throws ExecutionException {
          return autoDelegate.get(key);
        }
    
        @Override
        public V getUnchecked(K key) {
          return autoDelegate.getUnchecked(key);
        }
    
        @Override
        public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {
          return autoDelegate.getAll(keys);
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

        }
        return methodsInListener;
      }
    
      private static ImmutableList<Method> getAnnotatedMethods(Class<?> clazz) {
        try {
          return subscriberMethodsCache.getUnchecked(clazz);
        } catch (UncheckedExecutionException e) {
          if (e.getCause() instanceof IllegalArgumentException) {
            /*
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        Object key = new Object();
        Object value = new Object();
        LoadingCache<Object, Object> cache =
            builder.build(CacheLoader.from(Suppliers.ofInstance(value)));
        assertThat(cache.getUnchecked(key)).isSameInstanceAs(value);
        assertThat(cache.size()).isEqualTo(0);
        assertThat(cache.asMap().containsKey(key)).isFalse();
      }
    
      public void testCacheBuilderFrom_string() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            () -> {
              assertTrue(futureInteger.isDone());
              assertTrue(futureBoolean.isDone());
              result[0] =
                  createCombinedResult(
                      Futures.getUnchecked(futureInteger), Futures.getUnchecked(futureBoolean));
            };
    
        ListenableFuture<?> futureResult =
            whenAllComplete(futureInteger, futureBoolean).run(combiner, directExecutor());
        Integer integerPartial = 1;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            () -> {
              assertTrue(futureInteger.isDone());
              assertTrue(futureBoolean.isDone());
              result[0] =
                  createCombinedResult(
                      Futures.getUnchecked(futureInteger), Futures.getUnchecked(futureBoolean));
            };
    
        ListenableFuture<?> futureResult =
            whenAllComplete(futureInteger, futureBoolean).run(combiner, directExecutor());
        Integer integerPartial = 1;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  10. android/guava-tests/benchmark/com/google/common/util/concurrent/FuturesGetCheckedBenchmark.java

    import static com.google.common.util.concurrent.Futures.immediateFuture;
    import static com.google.common.util.concurrent.FuturesGetChecked.checkExceptionClassValidity;
    import static com.google.common.util.concurrent.FuturesGetChecked.getChecked;
    import static com.google.common.util.concurrent.FuturesGetChecked.isCheckedException;
    import static com.google.common.util.concurrent.FuturesGetChecked.weakSetValidator;
    
    import com.google.caliper.BeforeExperiment;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 6.5K bytes
    - Click Count (0)
Back to Top