Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 38 of 38 for getUnchecked (0.06 seconds)

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

  1. 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)
  2. 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)
  3. 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)
  4. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

                    .concurrencyLevel(12)
                    .removalListener(listener)
                    .ticker(ticker)
                    .build(loader);
        // add a non-serializable entry
        one.getUnchecked(new Object());
        assertThat(one.size()).isEqualTo(1);
        assertThat(one.asMap().isEmpty()).isFalse();
        LocalLoadingCache<Object, Object> two = SerializableTester.reserialize(one);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/cache/LocalCacheTest.java

                    .concurrencyLevel(12)
                    .removalListener(listener)
                    .ticker(ticker)
                    .build(loader);
        // add a non-serializable entry
        one.getUnchecked(new Object());
        assertThat(one.size()).isEqualTo(1);
        assertThat(one.asMap().isEmpty()).isFalse();
        LocalLoadingCache<Object, Object> two = SerializableTester.reserialize(one);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /** Unit tests for {@link Futures#getChecked(Future, Class)}. */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class FuturesGetCheckedTest extends TestCase {
      // Boring untimed-get tests:
    
      public void testGetCheckedUntimed_success() throws TwoArgConstructorException {
        assertThat(getChecked(immediateFuture("foo"), TwoArgConstructorException.class))
            .isEqualTo("foo");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 16.5K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /** Unit tests for {@link Futures#getChecked(Future, Class)}. */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class FuturesGetCheckedTest extends TestCase {
      // Boring untimed-get tests:
    
      public void testGetCheckedUntimed_success() throws TwoArgConstructorException {
        assertThat(getChecked(immediateFuture("foo"), TwoArgConstructorException.class))
            .isEqualTo("foo");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 16.5K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

    /** Static methods used to implement {@link Futures#getChecked(Future, Class)}. */
    @J2ktIncompatible
    @GwtIncompatible
    final class FuturesGetChecked {
      @CanIgnoreReturnValue
      @ParametricNullness
      static <V extends @Nullable Object, X extends Exception> V getChecked(
          Future<V> future, Class<X> exceptionClass) throws X {
        return getChecked(bestGetCheckedTypeValidator(), future, exceptionClass);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 10.2K bytes
    - Click Count (0)
Back to Top