Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for returningT2 (0.07 sec)

  1. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      private abstract static class RawTypeConsistencyTester<T extends Enum<T> & CharSequence> {
        abstract T returningT();
    
        abstract void acceptT(T t);
    
        abstract <X extends T> X returningX();
    
        abstract <X> void acceptX(X x);
    
        abstract <T2 extends Enum<T2> & CharSequence> T2 returningT2();
    
        abstract <T2 extends CharSequence & Iterable<T2>> void acceptT2(T2 t2);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      private abstract static class RawTypeConsistencyTester<T extends Enum<T> & CharSequence> {
        abstract T returningT();
    
        abstract void acceptT(T t);
    
        abstract <X extends T> X returningX();
    
        abstract <X> void acceptX(X x);
    
        abstract <T2 extends Enum<T2> & CharSequence> T2 returningT2();
    
        abstract <T2 extends CharSequence & Iterable<T2>> void acceptT2(T2 t2);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Futures.java

        if (instance != null) {
          return (ListenableFuture<V>) instance;
        }
        return new ImmediateCancelledFuture<>();
      }
    
      /**
       * Executes {@code callable} on the specified {@code executor}, returning a {@code Future}.
       *
       * @throws RejectedExecutionException if the task cannot be scheduled for execution
       * @since 28.2
       */
      public static <O extends @Nullable Object> ListenableFuture<O> submit(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 64.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterators.java

          @Override
          T transform(@ParametricNullness F from) {
            return function.apply(from);
          }
        };
      }
    
      /**
       * Advances {@code iterator} {@code position + 1} times, returning the element at the {@code
       * position}th position.
       *
       * @param position position of the element to return
       * @return the element at the specified position in {@code iterator}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Preconditions.java

       * }
       *
       * refactored so that messageExpression is moved to a separate String-returning method.
       *
       * if (guardExpression) {
       *    throw new BadException(badMsg(...));
       * }
       *
       * The alternative natural refactorings into void or Exception-returning methods are much slower.
       * This is a big deal - we're talking factors of 2-8 in microbenchmarks, not just 10-20%. (This is
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 10 22:11:00 UTC 2025
    - 53K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertEquals(3, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(2, stats.hitCount());
    
        key = new Object();
        assertSame(value, cache.get(key, Callables.returning(value)));
        stats = cache.stats();
        assertEquals(3, stats.missCount());
        assertEquals(4, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(2, stats.hitCount());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/CacheBuilder.java

       *
       * <p>When the weight of an entry is zero it will not be considered for size-based eviction
       * (though it still may be evicted by other means).
       *
       * <p><b>Important note:</b> Instead of returning this as a {@code CacheBuilder}
       * instance, this method returns {@code CacheBuilder<K1, V1>}. From this point on, either the
       * original reference or the returned reference may be used to complete configuration and build
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        assertNoExpectedFailures();
        super.tearDown();
      }
    
      public void testFrom() throws Exception {
        ClosingFuture<String> closingFuture =
            ClosingFuture.from(executor.submit(Callables.returning(closeable1)))
                .transform(
                    new ClosingFunction<TestCloseable, String>() {
                      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 75.4K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt

          apply {
            this.retryOnConnectionFailure = retryOnConnectionFailure
          }
    
        /**
         * Configure this client to perform fast fallbacks by attempting multiple connections
         * concurrently, returning once any connection connects successfully.
         *
         * This implements Happy Eyeballs ([RFC 6555][rfc_6555]), balancing connect latency vs.
         * wasted resources.
         *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/CharMatcher.java

      public static CharMatcher invisible() {
        return Invisible.INSTANCE;
      }
    
      /**
       * Determines whether a character is single-width (not double-width). When in doubt, this matcher
       * errs on the side of returning {@code false} (that is, it tends to assume a character is
       * double-width).
       *
       * <p><b>Note:</b> as the reference file evolves, we will modify this matcher to keep it up to
       * date.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 53.9K bytes
    - Viewed (0)
Back to top