Search Options

Results per page
Sort
Preferred Languages
Advance

Results 611 - 620 of 924 for builder2 (0.16 sec)

  1. guava/src/com/google/common/collect/ContiguousSet.java

       * method exists only to hide {@link ImmutableSet#builder} from consumers of {@code
       * ContiguousSet}.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Use {@link #create}.
       */
      @Deprecated
      @DoNotCall("Always throws UnsupportedOperationException")
      public static <E> ImmutableSortedSet.Builder<E> builder() {
        throw new UnsupportedOperationException();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheReferencesTest.java

            new Function<CacheBuilder<Object, Object>, LoadingCache<Key, String>>() {
              @Override
              public LoadingCache<Key, String> apply(CacheBuilder<Object, Object> builder) {
                return builder.build(KEY_TO_STRING_LOADER);
              }
            });
      }
    
      public void testContainsKeyAndValue() {
        for (LoadingCache<Key, String> cache : caches()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

          StringBuilder builder = new StringBuilder();
          CharBuffer buffer = CharBuffer.allocate(100);
          while (reader.read(buffer) != -1) {
            Java8Compatibility.flip(buffer);
            builder.append(buffer);
            Java8Compatibility.clear(buffer);
          }
          return builder.toString();
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        ImmutableSet.Builder<String> builder = ImmutableSet.builder();
        for (ClassPath.LocationInfo location : ClassPath.locationsFrom(loader)) {
          for (ResourceInfo resource : location.scanResources()) {
            builder.add(resource.getResourceName());
          }
        }
        return builder.build();
      }
    
      private static boolean isWindows() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  5. samples/crawler/src/main/java/okhttp3/sample/Crawler.java

        AtomicInteger previous = hostnames.putIfAbsent(url.host(), hostnameCount);
        if (previous != null) hostnameCount = previous;
        if (hostnameCount.incrementAndGet() > 100) return;
    
        Request request = new Request.Builder()
            .url(url)
            .build();
        try (Response response = client.newCall(request).execute()) {
          String responseSource = response.networkResponse() != null ? ("(network: "
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

        assertThat(emptyNetwork.allowsSelfLoops()).isTrue();
        assertThat(emptyNetwork.nodeOrder()).isEqualTo(ElementOrder.<String>natural());
      }
    
      /**
       * Tests that the ImmutableNetwork.Builder doesn't change when the creating NetworkBuilder
       * changes.
       */
      @Test
      @SuppressWarnings("CheckReturnValue")
      public void immutableNetworkBuilder_copiesNetworkBuilder() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun May 05 18:02:35 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/reflect/TypeResolver.java

        /** Returns a new {@code TypeResolver} with {@code variable} mapping to {@code type}. */
        final TypeTable where(Map<TypeVariableKey, ? extends Type> mappings) {
          ImmutableMap.Builder<TypeVariableKey, Type> builder = ImmutableMap.builder();
          builder.putAll(map);
          for (Entry<TypeVariableKey, ? extends Type> mapping : mappings.entrySet()) {
            TypeVariableKey variable = mapping.getKey();
            Type type = mapping.getValue();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/DispatcherCleanupTest.kt

            ) {}
    
            override fun onResponse(
              call: Call,
              response: Response,
            ) {
              response.close()
            }
          }
        repeat(10_000) {
          okhttp.newCall(Request.Builder().url(server.url("/")).build()).enqueue(callback)
        }
        okhttp.dispatcher.executorService.shutdown()
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. api/maven-api-plugin/src/site/apt/index.apt

     This is the immutable model for Maven Plugin Descriptor in <<<org.apache.maven.api.plugin.descriptor>>> package.
    
     The following are generated from this model:
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Dec 05 08:11:33 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Longs.java

        if (array.length == 0) {
          return "";
        }
    
        // For pre-sizing a builder, just get the right order of magnitude
        StringBuilder builder = new StringBuilder(array.length * 10);
        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: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
Back to top