Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 392 for Apply (0.02 sec)

  1. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidCertificateChainCleaner.kt

        try {
          return x509TrustManagerExtensions.checkServerTrusted(certificates, "RSA", hostname)
        } catch (ce: CertificateException) {
          throw SSLPeerUnverifiedException(ce.message).apply { initCause(ce) }
        }
      }
    
      override fun equals(other: Any?): Boolean =
        other is AndroidCertificateChainCleaner &&
          other.trustManager === this.trustManager
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        Map<@Nullable String, Boolean> map =
            transformValues(
                underlying,
                new Function<@Nullable String, Boolean>() {
                  @Override
                  public Boolean apply(@Nullable String from) {
                    return from == null;
                  }
                });
        Map<String, Boolean> expected = ImmutableMap.of("a", true, "b", false);
        assertMapsEqual(expected, map);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

            AsyncFunction<? super I, ? extends O> function, @ParametricNullness I input)
            throws Exception {
          ListenableFuture<? extends O> output = function.apply(input);
          checkNotNull(
              output,
              "AsyncFunction.apply returned null instead of a Future. "
                  + "Did you mean to return immediateFuture(null)? %s",
              function);
          return output;
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 20 18:03:37 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/score/ScoreBooster.java

         */
        protected Function<Map<String, Object>, Long> requestHandler = params -> {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            final String[] ids = idFinder.apply(params);
            if (ids.length == 0) {
                return 0L;
            }
            final SearchEngineClient client = ComponentUtil.getSearchEngineClient();
            if (bulkRequestBuilder == null) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/PathMappingHelperTest.java

            final Matcher matcher = pattern.matcher("test");
            final BiFunction<String, Matcher, String> pathMatcher = pathMappingHelper.createPathMatcher(matcher, "function:encodeUrl");
    
            String result = pathMatcher.apply("http://example.com/test path", matcher);
            assertEquals("http://example.com/test+path", result);
        }
    
        public void test_createPathMatcher_normalReplacement() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/CollectorTester.java

            for (T input : inputs) {
              A newAccum = collector.supplier().get();
              collector.accumulator().accept(newAccum, input);
              accum = collector.combiner().apply(accum, newAccum);
            }
            return accum;
          }
        },
        /** Get one accumulator for each element and merge the accumulators right-to-left. */
        MERGE_RIGHT_ASSOCIATIVE {
          @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu May 15 21:47:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt

    import okhttp3.tls.HandshakeCertificates
    import okhttp3.tls.internal.TlsUtil
    
    class DevServer {
      val handshakeCertificates = TlsUtil.localhost()
    
      val server =
        MockWebServer().apply {
          useHttps(handshakeCertificates.sslSocketFactory(), false)
    
          enqueue(
            MockResponse()
              .setResponseCode(HTTP_MOVED_TEMP)
              .setHeader("Location", "https://www.google.com/robots.txt"),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/TestLogHandler.kt

        logger.setLevel(Level.FINEST)
      }
    
      override fun afterEach(context: ExtensionContext?) {
        logger.setLevel(previousLevel)
        logger.removeHandler(handler)
      }
    
      override fun apply(
        base: Statement,
        description: Description,
      ): Statement =
        object : Statement() {
          override fun evaluate() {
            beforeEach(null)
            try {
              base.evaluate()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ForwardingListMultimapTest.java

        new ForwardingWrapperTester()
            .testForwarding(
                ListMultimap.class,
                new Function<ListMultimap, ListMultimap<?, ?>>() {
                  @Override
                  public ListMultimap<?, ?> apply(ListMultimap delegate) {
                    return wrap((ListMultimap<?, ?>) delegate);
                  }
                });
      }
    
      public void testEquals() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

    import org.junit.jupiter.api.Assertions.fail
    import org.junit.jupiter.api.extension.AfterEachCallback
    import org.junit.jupiter.api.extension.BeforeEachCallback
    import org.junit.jupiter.api.extension.ExtensionContext
    
    /**
     * Apply this rule to all tests. It adds additional checks for leaked resources and uncaught
     * exceptions.
     *
     * Use [newClient] as a factory for a OkHttpClient instances. These instances are specifically
     * configured for testing.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
Back to top