Search Options

Results per page
Sort
Preferred Languages
Advance

Results 501 - 510 of 924 for builder2 (0.05 sec)

  1. android/guava/src/com/google/common/base/MoreObjects.java

                builder.append(arrayString, 1, arrayString.length() - 1);
              } else {
                builder.append(value);
              }
            }
          }
          return builder.append('}').toString();
        }
    
        private ValueHolder addHolder() {
          ValueHolder valueHolder = new ValueHolder();
          holderTail = holderTail.next = valueHolder;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/PostForm.java

    public final class PostForm {
      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        RequestBody formBody = new FormBody.Builder()
            .add("search", "Jurassic Park")
            .build();
        Request request = new Request.Builder()
            .url("https://en.wikipedia.org/w/index.php")
            .post(formBody)
            .build();
    
        try (Response response = client.newCall(request).execute()) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.4K bytes
    - Viewed (0)
  3. container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt

      @Test
      fun testOkHttpProxied() {
        testRequest {
          it.withProxyConfiguration(ProxyConfiguration.proxyConfiguration(ProxyConfiguration.Type.HTTP, it.remoteAddress()))
    
          val client =
            OkHttpClient.Builder()
              .proxy(Proxy(Proxy.Type.HTTP, it.remoteAddress()))
              .build()
    
          val response =
            client.newCall(
              Request((mockServer.endpoint + "/person?name=peter").toHttpUrl()),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

      @Test
      public void equivalent_edgeAddOrdersDiffer() {
        GraphBuilder<Integer> builder = GraphBuilder.from(graph);
        MutableGraph<Integer> g1 = builder.build();
        MutableGraph<Integer> g2 = builder.build();
    
        // for g1, add 1->2 first, then 3->1
        g1.putEdge(N1, N2);
        g1.putEdge(N3, N1);
    
        // for g2, add 3->1 first, then 1->2
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

      @Test
      public void equivalent_edgeAddOrdersDiffer() {
        GraphBuilder<Integer> builder = GraphBuilder.from(graph);
        MutableGraph<Integer> g1 = builder.build();
        MutableGraph<Integer> g2 = builder.build();
    
        // for g1, add 1->2 first, then 3->1
        g1.putEdge(N1, N2);
        g1.putEdge(N3, N1);
    
        // for g2, add 3->1 first, then 1->2
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. docs/features/interceptors.md

    Register an _application_ interceptor by calling `addInterceptor()` on `OkHttpClient.Builder`:
    
    ```java
    OkHttpClient client = new OkHttpClient.Builder()
        .addInterceptor(new LoggingInterceptor())
        .build();
    
    Request request = new Request.Builder()
        .url("http://www.publicobject.com/helloworld.txt")
        .header("User-Agent", "OkHttp Example")
        .build();
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/MapMakerInternalMap.java

          return new MapMakerInternalMap<>(builder, StrongKeyWeakValueEntry.Helper.<K, V>instance());
        }
        if (builder.getKeyStrength() == Strength.WEAK
            && builder.getValueStrength() == Strength.STRONG) {
          return new MapMakerInternalMap<>(builder, WeakKeyStrongValueEntry.Helper.<K, V>instance());
        }
        if (builder.getKeyStrength() == Strength.WEAK && builder.getValueStrength() == Strength.WEAK) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java

      public static <E> NavigableSetTestSuiteBuilder<E> using(TestSortedSetGenerator<E> generator) {
        NavigableSetTestSuiteBuilder<E> builder = new NavigableSetTestSuiteBuilder<>();
        builder.usingGenerator(generator);
        return builder;
      }
    
      @Override
      protected List<TestSuite> createDerivedSuites(
          FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. cmd/server-startup-msg.go

    			globalConsoleSys.Send(GlobalContext, fmt.Sprintf("Server startup failed with '%v', some features may be missing", err))
    		}
    	}
    
    	if !globalSubnetConfig.Registered() {
    		var builder strings.Builder
    		startupBanner(&builder)
    		logger.Startup(builder.String())
    	}
    
    	strippedAPIEndpoints := stripStandardPorts(apiEndpoints, globalMinioHost)
    
    	// Prints credential, region and browser access.
    	printServerCommonMsg(strippedAPIEndpoints)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 23 14:11:35 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. android/guava-testlib/test/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilderTest.java

            new Runnable() {
              @Override
              public void run() {
                tearDown[0] = true;
              }
            };
    
        MyTestSuiteBuilder builder = new MyTestSuiteBuilder();
        Test test =
            builder
                .usingGenerator("yam")
                .named("yam")
                .withFeatures(CollectionFeature.NONE)
                .withSetUp(setUpRunnable)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top