Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 893 for builder2 (0.05 sec)

  1. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        unused = builder.build(); // this is *also* allowed
      }
    
      public void testBuildMutate() {
        ThreadFactory factory1 = builder.setPriority(1).build();
        assertEquals(1, factory1.newThread(monitoredRunnable).getPriority());
    
        builder.setPriority(2); // change the state of the builder
        assertEquals(1, factory1.newThread(monitoredRunnable).getPriority());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

              }
            }
            ImmutableBiMap.Builder<Object, Object> builder = ImmutableBiMap.builder();
            builder.putAll(sourceMap);
            return builder.buildOrThrow();
          }
        },
        BUILDER_PUT_ALL_ENTRIES {
          @Override
          public ImmutableBiMap<Object, Object> create(List<Entry<?, ?>> entries) {
            return ImmutableBiMap.builder().putAll(entries).buildOrThrow();
          }
        },
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

      }
    
      public static <K, V> Builder<K, V> builder() {
        return new Builder<K, V>();
      }
    
      public static final class Builder<K, V> extends ImmutableMap.Builder<K, V> {
    
        public Builder() {}
    
        Builder(int initCapacity) {
          super(initCapacity);
        }
    
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> put(K key, V value) {
          super.put(key, value);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_2x.md

    requests, responses, headers, and calls. It uses modern Java patterns like
    immutability and chained builders. The API now offers asynchronous callbacks
    in addition to synchronous blocking calls.
    
    #### API Changes
    
     *  **New Request and Response types,** each with their own builder. There's also
        a `RequestBody` class to write the request body to the network and a
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  5. guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/Platform.java

        }
        builder.append(template.substring(templateStart));
    
        // if we run out of placeholders, append the extra args in square braces
        if (i < args.length) {
          builder.append(" [");
          builder.append(args[i++]);
          while (i < args.length) {
            builder.append(", ");
            builder.append(args[i++]);
          }
          builder.append("]");
        }
    
        return builder.toString();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.1K bytes
    - Viewed (0)
  6. clause/locking.go

    	return "FOR"
    }
    
    // Build build where clause
    func (locking Locking) Build(builder Builder) {
    	builder.WriteString(locking.Strength)
    	if locking.Table.Name != "" {
    		builder.WriteString(" OF ")
    		builder.WriteQuoted(locking.Table)
    	}
    
    	if locking.Options != "" {
    		builder.WriteByte(' ')
    		builder.WriteString(locking.Options)
    	}
    }
    
    // MergeClause merge order by clauses
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Dec 15 08:32:56 UTC 2023
    - 773 bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/ClassPath.java

          ImmutableSet.Builder<ResourceInfo> builder = ImmutableSet.builder();
          scannedFiles.add(home);
          scan(home, scannedFiles, builder);
          return builder.build();
        }
    
        private void scan(File file, Set<File> scannedUris, ImmutableSet.Builder<ResourceInfo> builder)
            throws IOException {
          try {
            if (!file.exists()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  8. clause/insert.go

    	return "INSERT"
    }
    
    // Build build insert clause
    func (insert Insert) Build(builder Builder) {
    	if insert.Modifier != "" {
    		builder.WriteString(insert.Modifier)
    		builder.WriteByte(' ')
    	}
    
    	builder.WriteString("INTO ")
    	if insert.Table.Name == "" {
    		builder.WriteQuoted(currentTable)
    	} else {
    		builder.WriteQuoted(insert.Table)
    	}
    }
    
    // MergeClause merge insert clause
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 09 09:07:00 UTC 2020
    - 767 bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Request.kt

     * immutable.
     */
    class Request internal constructor(builder: Builder) {
      @get:JvmName("url")
      val url: HttpUrl = checkNotNull(builder.url) { "url == null" }
    
      @get:JvmName("method")
      val method: String = builder.method
    
      @get:JvmName("headers")
      val headers: Headers = builder.headers.build()
    
      @get:JvmName("body")
      val body: RequestBody? = builder.body
    
      @get:JvmName("cacheUrlOverride")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:17:44 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

        val headers =
          Headers.Builder()
            .add("WWW-Authenticate: Basic realm=\"protected area\"")
            .build()
        assertThat(headers.parseChallenges("WWW-Authenticate"))
          .isEqualTo(listOf(Challenge("Basic", mapOf("realm" to "protected area"))))
      }
    
      @Test fun basicChallengeWithCharset() {
        val headers =
          Headers.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top