Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 256 for foreach (0.08 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt

        withLock {
          if (streams.isNotEmpty()) {
            streamsToClose = streams.values.toTypedArray()
            streams.clear()
          }
        }
    
        streamsToClose?.forEach { stream ->
          ignoreIoExceptions {
            stream.close(streamCode, cause)
          }
        }
    
        // Close the writer to release its resources (such as deflaters).
        ignoreIoExceptions {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 31.8K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/ArrayTable.java

     * associated with it: It is not possible to "remove" a value, only to replace it with {@code null},
     * which will still appear when iterating over the table's contents in a foreach loop or a call to a
     * null-hostile method like {@link ImmutableTable#copyOf}. For alternatives, please see <a
     * href="https://github.com/google/guava/wiki/NewCollectionTypesExplained#table">the wiki</a>.
     *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Aug 13 19:39:21 GMT 2025
    - 26.2K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java

        private void cleanupTempDirectory(Path tempDir) {
            try {
                Files.walk(tempDir)
                        .sorted(Comparator.reverseOrder())
                        .map(Path::toFile)
                        .forEach(File::delete);
            } catch (Exception e) {
                // Best effort cleanup - don't fail the whole operation
            }
        }
    
        /**
         * Holds plugin upgrade information for Maven 4 compatibility.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 37K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/FluentIterable.java

       * calling {@code Iterables.addAll(collection, this)}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code stream.forEachOrdered(collection::add)} or {@code
       * stream.forEach(collection::add)}.
       *
       * @param collection the collection to copy elements to
       * @return {@code collection}, for convenience
       * @since 14.0
       */
      @CanIgnoreReturnValue
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 34.7K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/ImmutableList.java

          @Override
          protected E get(int index) {
            return ImmutableList.this.get(index);
          }
        };
      }
    
      @Override
      public void forEach(Consumer<? super E> consumer) {
        checkNotNull(consumer);
        int n = size();
        for (int i = 0; i < n; i++) {
          consumer.accept(get(i));
        }
      }
    
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 30.6K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/ImmutableSet.java

        }
    
        @Override
        public Spliterator<E> spliterator() {
          return CollectSpliterators.indexed(size(), SPLITERATOR_CHARACTERISTICS, this::get);
        }
    
        @Override
        public void forEach(Consumer<? super E> consumer) {
          checkNotNull(consumer);
          int n = size();
          for (int i = 0; i < n; i++) {
            consumer.accept(get(i));
          }
        }
    
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Nov 07 16:09:47 GMT 2025
    - 35.3K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                    return null;
                }
                ArrayList<org.apache.maven.model.building.ModelProblem> problems = new ArrayList<>();
                problemCollector.problems().map(BuildSession::convert).forEach(problems::add);
                if (problemCollector.problemsOverflow()) {
                    problems.add(
                            0,
                            new DefaultModelProblem(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 51.8K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

            // restore profiles with any activation to their value before full interpolation
            List<Profile> interpolatedProfiles = model.getProfiles();
            IntStream.range(0, interpolatedProfiles.size()).forEach(i -> interpolatedProfiles
                    .get(i)
                    .setActivation(originalProfiles.get(i).getActivation()));
    
            return interpolatedModel;
        }
    
        private ModelData readParent(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Mar 30 23:08:08 GMT 2025
    - 55.3K bytes
    - Click Count (0)
  9. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

            Set<String> sys = SystemProperties.getSystemProperties().stringPropertyNames();
            userProperties.stringPropertyNames().stream()
                    .filter(k -> !sys.contains(k))
                    .forEach(k -> System.setProperty(k, userProperties.getProperty(k)));
        }
    
        private static UnaryOperator<String> prefix(String prefix, UnaryOperator<String> cb) {
            return s -> {
                String v = null;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 78.1K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

          override fun isOneShot(): Boolean = true
    
          override fun contentType(): MediaType? = "application/text-plain".toMediaTypeOrNull()
    
          override fun writeTo(sink: BufferedSink) {
            internalBody.forEach { item ->
              sink.writeUtf8(this@toOneShotRequestBody)
            }
          }
        }
    
      @Test
      fun secureResponseCachingAndRedirects() {
        server.useHttps(handshakeCertificates.sslSocketFactory())
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Oct 03 17:41:45 GMT 2025
    - 116.8K bytes
    - Click Count (0)
Back to Top