Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 341 - 350 of 2,714 for build1 (0.06 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CallTagsTest.kt

      private var client = clientTestRule.newClient()
    
      @Test
      fun tagsSeededFromRequest() {
        val request =
          Request
            .Builder()
            .url("https://square.com/".toHttpUrl())
            .tag(Integer::class, 5 as Integer)
            .tag(String::class, "hello")
            .build()
        val call = client.newCall(request)
    
        // Check the Kotlin-focused APIs.
        assertThat(call.tag(String::class)).isEqualTo("hello")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Oct 26 14:54:46 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  2. samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java

      private final OkHttpClient client = new OkHttpClient.Builder()
          .certificatePinner(
              new CertificatePinner.Builder()
                  .add("publicobject.com", "sha256/Vjs8r4z+80wjNcr1YKepWQboSIRi63WsWXhIMN+eWys=")
                  .build())
          .build();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/robots.txt")
            .build();
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Dec 08 21:30:01 GMT 2019
    - 1.7K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ImmutableCollection.java

          }
          return newCapacity;
        }
    
        Builder() {}
    
        /**
         * Adds {@code element} to the {@code ImmutableCollection} being built.
         *
         * <p>Note that each builder class covariantly returns its own type from this method.
         *
         * @param element the element to add
         * @return this {@code Builder} instance
         * @throws NullPointerException if {@code element} is null
         */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

        this.onResponseEnd = builder.onResponseEnd
        this.shutdownServer = builder.shutdownServer
        this.headersDelayNanos = builder.headersDelayNanos
        this.bodyDelayNanos = builder.bodyDelayNanos
        this.trailersDelayNanos = builder.trailersDelayNanos
        this.pushPromises = builder.pushPromises
        this.settings = builder.settings
      }
    
      public fun newBuilder(): Builder = Builder(this)
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderFactoryTest.java

        void testCompleteWiring() throws Exception {
            ModelBuilder builder = new DefaultModelBuilderFactory().newInstance();
            assertNotNull(builder);
    
            DefaultModelBuildingRequest request = new DefaultModelBuildingRequest();
            request.setProcessPlugins(true);
            request.setPomFile(getPom("simple"));
    
            ModelBuildingResult result = builder.build(request);
            assertNotNull(result);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

     * ```java
     * Request request = new Request.Builder()
     *     .cacheControl(new CacheControl.Builder().noCache().build())
     *     .url("http://publicobject.com/helloworld.txt")
     *     .build();
     * ```
     *
     * If it is only necessary to force a cached response to be validated by the server, use the more
     * efficient `max-age=0` directive instead:
     *
     * ```java
     * Request request = new Request.Builder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 09:13:37 GMT 2026
    - 26.9K bytes
    - Click Count (0)
  7. android/guava-tests/benchmark/com/google/common/collect/ImmutableListCreationBenchmark.java

          ImmutableList.Builder<Object> builder = new ImmutableList.Builder<>(size);
          for (int i = 0; i < size; i++) {
            builder.add(OBJECT);
          }
          dummy += builder.build().size();
        }
        return dummy;
      }
    
      @Benchmark
      int copyArrayList(int reps) {
        int size = this.size;
        int dummy = 0;
        for (int rep = 0; rep < reps; rep++) {
          List<Object> builder = new ArrayList<>();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  8. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/InternalDistributionBwcSetupPluginFuncTest.groovy

            result.output.contains("expandedRootPath /distribution/bwc/minor/build/bwc/checkout-7.x/" +
                            "distribution/archives/darwin-tar/build/install")
            result.output.contains("nested folder /distribution/bwc/minor/build/bwc/checkout-7.x/" +
                            "distribution/archives/darwin-tar/build/install/elasticsearch-7.12.0-SNAPSHOT")
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 03 10:22:28 GMT 2021
    - 7.9K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/graph/ImmutableNetwork.java

       *         .addNode(REYKJAVIK)
       *         .build();
       * }
       *
       * <p>Builder instances can be reused; it is safe to call {@link #build} multiple times to build
       * multiple networks in series. Each new network contains all the elements of the ones created
       * before it.
       *
       * @since 28.0
       */
      public static class Builder<N, E> {
    
        private final MutableNetwork<N, E> mutableNetwork;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 9.6K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

      public void testBuilder_presize_zero() {
        ImmutableDoubleArray.Builder builder = ImmutableDoubleArray.builder(0);
        builder.add(5.0);
        ImmutableDoubleArray array = builder.build();
        assertThat(array.asList()).containsExactly(5.0);
      }
    
      public void testBuilder_presize_negative() {
        assertThrows(IllegalArgumentException.class, () -> ImmutableDoubleArray.builder(-1));
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 21.5K bytes
    - Click Count (0)
Back to Top