Search Options

Results per page
Sort
Preferred Languages
Advance

Results 461 - 470 of 924 for builder2 (0.07 sec)

  1. guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

        s.defaultReadObject();
    
        int length = s.readInt();
        ImmutableLongArray.Builder builder = ImmutableLongArray.builder();
        for (int i = 0; i < length; i++) {
          builder.add(doubleToRawLongBits(s.readDouble()));
        }
        this.longs = new AtomicLongArray(builder.build().toArray());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/escape/CharEscaperBuilderTest.java

    import junit.framework.TestCase;
    
    public class CharEscaperBuilderTest extends TestCase {
    
      public void testAddEscapes() {
        char[] cs = {'a', 'b', 'c'};
        CharEscaperBuilder builder = new CharEscaperBuilder().addEscapes(cs, "Z");
        Escaper escaper = builder.toEscaper();
        assertEquals("ZZZdef", escaper.escape("abcdef"));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 15 20:25:06 UTC 2018
    - 975 bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/lifecycle/LifecycleExecutor.java

        // For a given project packaging find all the plugins that are bound to any registered
        // lifecycles. The project builder needs to now what default plugin information needs to be
        // merged into POM being built. Once the POM builder has this plugin information, versions can be assigned
        // by the POM builder because they will have to be defined in plugin management. Once this is setComplete then it
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliTestMain.kt

    import okhttp3.Request
    
    fun main() {
      val client =
        OkHttpClient.Builder()
          .addInterceptor(BrotliInterceptor)
          .build()
    
      sendRequest("https://httpbin.org/brotli", client)
      sendRequest("https://httpbin.org/gzip", client)
    }
    
    private fun sendRequest(
      url: String,
      client: OkHttpClient,
    ) {
      val req = Request.Builder().url(url).build()
    
      client.newCall(req).execute().use {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/net/MediaType.java

        ImmutableListMultimap.Builder<String, String> builder = ImmutableListMultimap.builder();
        for (Entry<String, String> entry : parameters.entries()) {
          String key = entry.getKey();
          if (!normalizedAttribute.equals(key)) {
            builder.put(key, entry.getValue());
          }
        }
        for (String value : values) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 26 19:15:09 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/query/DefaultQueryBuilder.java

            queryBuilder.visit(visitor);
        }
    
        @Override
        public XContentBuilder toXContent(final XContentBuilder builder, final Params params) throws IOException {
            return queryBuilder.toXContent(builder, params);
        }
    
        @Override
        public void writeTo(final StreamOutput out) throws IOException {
            queryBuilder.writeTo(out);
        }
    
        @Override
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/CacheResponse.kt

    class CacheResponse(cacheDirectory: File) {
      private val client: OkHttpClient =
        OkHttpClient.Builder()
          .cache(
            Cache(
              directory = cacheDirectory,
              // 1 MiB.
              maxSize = 10L * 1024L * 1024L,
            ),
          )
          .build()
    
      fun run() {
        val request =
          Request.Builder()
            .url("http://publicobject.com/helloworld.txt")
            .build()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/ClientAndServer.java

        server.enqueue(new MockResponse().setBody("hello"));
        server.start();
    
        OkHttpClient client = new OkHttpClient.Builder()
            .socketFactory(new UnixDomainSocketFactory(socketFile))
            .protocols(Collections.singletonList(Protocol.H2_PRIOR_KNOWLEDGE))
            .build();
    
        Request request = new Request.Builder()
            .url("http://publicobject.com/helloworld.txt")
            .build();
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Dec 24 03:46:30 UTC 2018
    - 2.1K bytes
    - Viewed (0)
  9. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/SettingsBuildingResult.java

     * under the License.
     */
    package org.apache.maven.settings.building;
    
    import java.util.List;
    
    import org.apache.maven.settings.Settings;
    
    /**
     * Collects the output of the settings builder.
     *
     * @deprecated since 4.0.0, use {@link org.apache.maven.api.services.SettingsBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    public interface SettingsBuildingResult {
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/PreemptiveAuth.java

      private final OkHttpClient client;
    
      public PreemptiveAuth() {
        client = new OkHttpClient.Builder()
            .addInterceptor(
                new BasicAuthInterceptor("publicobject.com", "jesse", "password1"))
            .build();
      }
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/secrets/hellosecret.txt")
            .build();
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Nov 05 07:46:46 UTC 2018
    - 2.1K bytes
    - Viewed (0)
Back to top