Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        }
    
        @Override
        public final void forEachRemaining(OutConsumerT action) {
          if (prefix != null) {
            prefix.forEachRemaining(action);
            prefix = null;
          }
          from.forEachRemaining(
              fromElement -> {
                OutSpliteratorT elements = function.apply(fromElement);
                if (elements != null) {
                  elements.forEachRemaining(action);
                }
              });
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 15:21:23 GMT 2024
    - 19.8K 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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K 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
     */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        for (Entry<String, Integer> entry : expectedEntries) {
          multimap.put(entry.getKey(), entry.getValue());
        }
        List<String> actualKeys = new ArrayList<>();
        multimap.keys().spliterator().forEachRemaining(actualKeys::add);
        assertThat(actualKeys)
            .containsExactlyElementsIn(Lists.transform(expectedEntries, Entry::getKey))
            .inOrder();
      }
    
      public void testEntriesSpliterator() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  5. android/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
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  6. 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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  7. 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
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java

        multiset.add("a", 3);
        multiset.add("b", 1);
        multiset.add("c", 2);
    
        List<String> actualValues = Lists.newArrayList();
        multiset.spliterator().forEachRemaining(actualValues::add);
        assertThat(multiset).containsExactly("a", "a", "a", "b", "c", "c").inOrder();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4K bytes
    - Viewed (0)
  9. 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 {
            Helpers.assertEqualIgnoringOrder(expectedElements, targetElements);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
Back to top