Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for forEachRemaining (0.07 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

          extends GeneralSpliterator<E> {
        GeneralSpliteratorOfObject(Spliterator<E> spliterator) {
          super(spliterator);
        }
    
        @Override
        void forEachRemaining(Consumer<? super E> action) {
          spliterator.forEachRemaining(action);
        }
    
        @Override
        boolean tryAdvance(Consumer<? super E> action) {
          return spliterator.tryAdvance(action);
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

          extends GeneralSpliterator<E> {
        GeneralSpliteratorOfObject(Spliterator<E> spliterator) {
          super(spliterator);
        }
    
        @Override
        void forEachRemaining(Consumer<? super E> action) {
          spliterator.forEachRemaining(action);
        }
    
        @Override
        boolean tryAdvance(Consumer<? super E> action) {
          return spliterator.tryAdvance(action);
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ForwardingIterator.java

     * href="https://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html">before {@code default}
     * methods were introduced</a>. For newer methods, like {@code forEachRemaining}, it inherits their
     * default implementations. When those implementations invoke methods, they invoke methods on the
     * {@code ForwardingIterator}.
     *
     * @author Kevin Bourrillion
     * @since 2.0
     */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java

        Multiset<String> multiset = TreeMultiset.create();
        multiset.add("a", 3);
        multiset.add("b", 1);
        multiset.add("c", 2);
    
        List<String> actualValues = new ArrayList<>();
        multiset.spliterator().forEachRemaining(actualValues::add);
        assertThat(multiset).containsExactly("a", "a", "a", "b", "c", "c").inOrder();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ForwardingListIterator.java

     * href="https://docs.oracle.com/javase/7/docs/api/java/util/ListIterator.html">before {@code
     * default} methods were introduced</a>. For newer methods, like {@code forEachRemaining}, it
     * inherits their default implementations. When those implementations invoke methods, they invoke
     * methods on the {@code ForwardingListIterator}.
     *
     * @author Mike Bostock
     * @since 2.0
     */
    @GwtCompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Streams.java

            // spliterator is known to be nonempty now
            spliterator.forEachRemaining(state::set);
            return java.util.Optional.of(state.get());
          }
    
          Spliterator<T> prefix = spliterator.trySplit();
          if (prefix == null || prefix.getExactSizeIfKnown() == 0) {
            // we can't split this any further
            spliterator.forEachRemaining(state::set);
            if (state.set) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 37K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

          List<E> targetElements = new ArrayList<>();
          Iterator<E> iterator = newTargetIterator();
          for (int j = 0; j < i; j++) {
            targetElements.add(iterator.next());
          }
          iterator.forEachRemaining(targetElements::add);
          if (knownOrder == KnownOrder.KNOWN_ORDER) {
            assertEquals(expectedElements, targetElements);
          } else {
            assertEqualIgnoringOrder(expectedElements, targetElements);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

          long size = spliterator.getExactSizeIfKnown();
          if (size > 0) { // known *and* nonempty
            ensureRoomFor(Ints.saturatedCast(size));
          }
          spliterator.forEachRemaining((LongConsumer) this::add);
          return this;
        }
    
        /**
         * Appends {@code values}, in order, to the end of the values the built {@link
         * ImmutableLongArray} will contain.
         */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/ImmutableIntArray.java

          long size = spliterator.getExactSizeIfKnown();
          if (size > 0) { // known *and* nonempty
            ensureRoomFor(Ints.saturatedCast(size));
          }
          spliterator.forEachRemaining((IntConsumer) this::add);
          return this;
        }
    
        /**
         * Appends {@code values}, in order, to the end of the values the built {@link
         * ImmutableIntArray} will contain.
         */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 21.4K bytes
    - Viewed (0)
Back to top