Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 167 for NewBuilder (0.26 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/normalization/DefaultModelNormalizer.java

            Model.Builder builder = Model.newBuilder(model);
    
            builder.dependencies(injectList(model.getDependencies(), this::injectDependency));
            Build build = model.getBuild();
            if (build != null) {
                Build newBuild = Build.newBuilder(build)
                        .plugins(injectList(build.getPlugins(), this::injectPlugin))
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/InternersTest.java

      }
    
      public void testConcurrencyLevel_zero() {
        Interners.InternerBuilder builder = Interners.newBuilder();
        assertThrows(IllegalArgumentException.class, () -> builder.concurrencyLevel(0));
      }
    
      public void testConcurrencyLevel_negative() {
        Interners.InternerBuilder builder = Interners.newBuilder();
        assertThrows(IllegalArgumentException.class, () -> builder.concurrencyLevel(-42));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. samples/slack/src/main/java/okhttp3/slack/SlackApi.java

        this.port = port;
      }
    
      /** See https://api.slack.com/docs/oauth. */
      public HttpUrl authorizeUrl(String scopes, HttpUrl redirectUrl, ByteString state, String team) {
        HttpUrl.Builder builder = baseUrl.newBuilder("/oauth/authorize")
            .addQueryParameter("client_id", clientId)
            .addQueryParameter("scope", scopes)
            .addQueryParameter("redirect_uri", redirectUrl.toString())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Jul 06 19:30:55 UTC 2018
    - 4.4K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/project/EmptyLifecycleBindingsInjector.java

        }
    
        private static Plugin newPlugin(String artifactId, String... goals) {
            return Plugin.newBuilder()
                    .groupId("org.apache.maven.plugins")
                    .artifactId(artifactId)
                    .executions(Arrays.stream(goals)
                            .map(goal -> PluginExecution.newBuilder()
                                    .id("default-" + goal)
                                    .goals(List.of(goal))
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CacheTest.kt

        server.enqueue(
          response.newBuilder()
            .body("A")
            .status("HTTP/1.1 200 A-OK")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .code(HttpURLConnection.HTTP_NOT_MODIFIED)
            .build(),
        )
    
        // scenario 2: condition fails
        server.enqueue(
          response.newBuilder()
            .body("B")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  6. compat/maven-model/src/test/java/org/apache/maven/model/merge/MavenMergerTest.java

        @Test
        void mergeSameContributors() {
            Contributor contributor =
                    Contributor.newBuilder().email("******@****.***").build();
    
            Model target =
                    Model.newBuilder().contributors(Arrays.asList(contributor)).build();
    
            Model source =
                    Model.newBuilder().contributors(Arrays.asList(contributor)).build();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/cache/MapMakerComparisonBenchmark.java

      // Non-loading versions:
      private final Map<Object, Object> map = new MapMaker().makeMap(); // Returns ConcurrentHashMap
      private final Cache<Object, Object> cache = CacheBuilder.newBuilder().recordStats().build();
      private final Cache<Object, Object> cacheNoStats = CacheBuilder.newBuilder().build();
    
      @BeforeExperiment
      void setUp() {
        map.put(TEST_KEY, TEST_VALUE);
        cache.put(TEST_KEY, TEST_VALUE);
        cacheNoStats.put(TEST_KEY, TEST_VALUE);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 05 17:21:46 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/NetworkBuilder.java

       */
      public <N1 extends N> NetworkBuilder<N1, E> nodeOrder(ElementOrder<N1> nodeOrder) {
        NetworkBuilder<N1, E> newBuilder = cast();
        newBuilder.nodeOrder = checkNotNull(nodeOrder);
        return newBuilder;
      }
    
      /**
       * Specifies the order of iteration for the elements of {@link Network#edges()}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

            .build(),
        )
        val client1 =
          client.newBuilder()
            .readTimeout(Duration.ofSeconds(2))
            .build()
        val call1 =
          client1
            .newCall(
              Request.Builder()
                .url(server.url("/"))
                .build(),
            )
        val client2 =
          client.newBuilder()
            .readTimeout(Duration.ofMillis(200))
            .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

            ActivationFile activationFile =
                    ActivationFile.newBuilder().exists(filePath).build();
            return newProfile(activationFile);
        }
    
        private Profile newMissingProfile(String filePath) {
            ActivationFile activationFile =
                    ActivationFile.newBuilder().missing(filePath).build();
            return newProfile(activationFile);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top