Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for forEachOrdered (0.04 sec)

  1. android/guava/src/com/google/common/io/CharSource.java

      public void forEachLine(Consumer<? super String> action) throws IOException {
        try (Stream<String> lines = lines()) {
          // The lines should be ordered regardless in most cases, but use forEachOrdered to be sure
          lines.forEachOrdered(action);
        } catch (UncheckedIOException e) {
          throw e.getCause();
        }
      }
    
      /**
       * Returns whether the source has zero chars. The default implementation first checks {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/CharSource.java

       */
      public void forEachLine(Consumer<? super String> action) throws IOException {
        try (Stream<String> lines = lines()) {
          // The lines should be ordered regardless in most cases, but use forEachOrdered to be sure
          lines.forEachOrdered(action);
        } catch (UncheckedIOException e) {
          throw e.getCause();
        }
      }
    
      /**
       * Returns whether the source has zero chars. The default implementation first checks {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CollectCollectors.java

            multimapSupplier,
            (multimap, input) -> {
              K key = keyFunction.apply(input);
              Collection<V> valuesForKey = multimap.get(key);
              valueFunction.apply(input).forEachOrdered(valuesForKey::add);
            },
            (multimap1, multimap2) -> {
              multimap1.putAll(multimap2);
              return multimap1;
            });
      }
    
      private CollectCollectors() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CollectCollectors.java

            multimapSupplier,
            (multimap, input) -> {
              K key = keyFunction.apply(input);
              Collection<V> valuesForKey = multimap.get(key);
              valueFunction.apply(input).forEachOrdered(valuesForKey::add);
            },
            (multimap1, multimap2) -> {
              multimap1.putAll(multimap2);
              return multimap1;
            });
      }
    
      private CollectCollectors() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/FluentIterable.java

       * Copies all the elements from this fluent iterable to {@code collection}. This is equivalent to
       * 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
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/FluentIterable.java

       * Copies all the elements from this fluent iterable to {@code collection}. This is equivalent to
       * 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
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
Back to top