Search Options

Results per page
Sort
Preferred Languages
Advance

Results 451 - 460 of 1,105 for builder (0.09 sec)

  1. android/guava/src/com/google/common/primitives/SignedBytes.java

        if (array.length == 0) {
          return "";
        }
    
        // For pre-sizing a builder, just get the right order of magnitude
        StringBuilder builder = new StringBuilder(array.length * 5);
        builder.append(array[0]);
        for (int i = 1; i < array.length; i++) {
          builder.append(separator).append(array[i]);
        }
        return builder.toString();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/HandshakeTest.kt

    class HandshakeTest {
      val serverRoot =
        HeldCertificate.Builder()
          .certificateAuthority(1)
          .build()
      val serverIntermediate =
        HeldCertificate.Builder()
          .certificateAuthority(0)
          .signedBy(serverRoot)
          .build()
      val serverCertificate =
        HeldCertificate.Builder()
          .signedBy(serverIntermediate)
          .build()
    
      @Test
      fun createFromParts() {
        val handshake =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

     * by a G, selecting appropriate tests by matching them against specified features.
     *
     * @param <B> The concrete type of this builder (the 'self-type'). All the Builder methods of this
     *     class (such as {@link #named}) return this type, so that Builder methods of more derived
     *     classes can be chained onto them without casting.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

    /**
     * Tests for {@link ImmutableGraph} and {@link ImmutableGraph.Builder} that are not ready covered by
     * {@link StandardImmutableDirectedGraphTest}.
     */
    @RunWith(JUnit4.class)
    public class StandardImmutableGraphAdditionalTest {
    
      @Test
      public void immutableGraph() {
        MutableGraph<String> mutableGraph = GraphBuilder.directed().build();
        mutableGraph.addNode("A");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

    /**
     * Tests for {@link ImmutableGraph} and {@link ImmutableGraph.Builder} that are not ready covered by
     * {@link StandardImmutableDirectedGraphTest}.
     */
    @RunWith(JUnit4.class)
    public class StandardImmutableGraphAdditionalTest {
    
      @Test
      public void immutableGraph() {
        MutableGraph<String> mutableGraph = GraphBuilder.directed().build();
        mutableGraph.addNode("A");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/reflect/Invokable.java

        ImmutableList.Builder<Parameter> builder = ImmutableList.builder();
        for (int i = 0; i < parameterTypes.length; i++) {
          builder.add(
              new Parameter(
                  this, i, TypeToken.of(parameterTypes[i]), annotations[i], annotatedTypes[i]));
        }
        return builder.build();
      }
    
      /** Returns all declared exception types of this {@code Invokable}. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  7. samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsClient.kt

    class SslLabsClient(
      callFactory: Call.Factory,
    ) {
      private val moshi = Moshi.Builder().build()
    
      private val moshiConverterFactory = MoshiConverterFactory.create(moshi)
    
      private val retrofit =
        Retrofit.Builder()
          .baseUrl(SslLabsApi.BASE_URL)
          .addConverterFactory(moshiConverterFactory)
          .callFactory(callFactory)
          .build()
    
      private val sslLabsApi = retrofit.create(SslLabsApi::class.java)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Apr 02 01:44:15 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. 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)
  9. 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 {
        println(it.body.string())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilderFactory.java

    import static java.util.Objects.requireNonNull;
    
    /**
     * A factory to create model builder instances when no dependency injection is available. Note: This class is
     * only meant as a utility for developers that want to employ the model builder outside the Maven build system, Maven
     * plugins should always acquire model builder instances via dependency injection. Developers might want to subclass
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top