Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 582 for BiIterator (0.14 seconds)

  1. android/guava/src/com/google/common/collect/StandardTable.java

        Map<R, V> output = new LinkedHashMap<>();
        Iterator<Entry<R, Map<C, V>>> iterator = backingMap.entrySet().iterator();
        while (iterator.hasNext()) {
          Entry<R, Map<C, V>> entry = iterator.next();
          V value = entry.getValue().remove(column);
          if (value != null) {
            output.put(entry.getKey(), value);
            if (entry.getValue().isEmpty()) {
              iterator.remove();
            }
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 29.4K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

          @Override
          protected Iterator<E> newTargetIterator() {
            resetCollection();
            return collection.iterator();
          }
    
          @Override
          protected void verify(List<E> elements) {
            expectContents(elements);
          }
        }.test();
      }
    
      public void testIteratorNoSuchElementException() {
        Iterator<E> iterator = collection.iterator();
        while (iterator.hasNext()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java

    import java.util.Collections;
    import java.util.Iterator;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A utility for testing an Iterator implementation by comparing its behavior to that of a "known
     * good" reference implementation. In order to accomplish this, it's important to test a great
     * variety of sequences of the {@link Iterator#next}, {@link Iterator#hasNext} and {@link
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/collect/Collections2Test.java

        Iterator<List<Integer>> permutations = permutationSet.iterator();
        assertNextPermutation(Collections.<Integer>emptyList(), permutations);
        assertNoMorePermutations(permutations);
      }
    
      public void testPermutationSetOneElement() {
        Iterator<List<Integer>> permutations =
            Collections2.permutations(Collections.<Integer>singletonList(1)).iterator();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 20.1K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java

      public void testRemovePresentConcurrentWithEntrySetIteration() {
        assertThrows(
            ConcurrentModificationException.class,
            () -> {
              Iterator<Entry<K, V>> iterator = getMap().entrySet().iterator();
              getMap().remove(k0());
              iterator.next();
            });
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_REMOVE})
      @CollectionSize.Require(SEVERAL)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 5.9K bytes
    - Click Count (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

      public void testEntrySet_iteratorRemovePropagates() {
        Iterator<Multiset.Entry<E>> iterator = getMultiset().entrySet().iterator();
        assertTrue(
            "non-empty multiset.entrySet() iterator.hasNext() returned false", iterator.hasNext());
        assertEquals(
            "multiset.entrySet() iterator.next() returned incorrect entry",
            Multisets.immutableEntry(e0(), 1),
            iterator.next());
        assertFalse(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 9.6K bytes
    - Click Count (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/AbstractSortedMultiset.java

          @Override
          SortedMultiset<E> forwardMultiset() {
            return AbstractSortedMultiset.this;
          }
    
          @Override
          Iterator<Entry<E>> entryIterator() {
            return descendingEntryIterator();
          }
    
          @Override
          public Iterator<E> iterator() {
            return descendingIterator();
          }
        };
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/AbstractSortedMultiset.java

          @Override
          SortedMultiset<E> forwardMultiset() {
            return AbstractSortedMultiset.this;
          }
    
          @Override
          Iterator<Entry<E>> entryIterator() {
            return descendingEntryIterator();
          }
    
          @Override
          public Iterator<E> iterator() {
            return descendingIterator();
          }
        }
        return new DescendingMultisetImpl();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

        } else if (isEmpty()) {
          return true;
        }
    
        if (SortedIterables.hasSameComparator(comparator, that)) {
          Iterator<?> otherIterator = that.iterator();
          try {
            Iterator<E> iterator = iterator();
            while (iterator.hasNext()) {
              Object element = iterator.next();
              Object otherElement = otherIterator.next();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

      public void testCopyOf_iterator_empty() {
        Iterator<String> iterator = emptyIterator();
        Set<String> set = copyOf(iterator);
        assertEquals(Collections.<String>emptySet(), set);
        assertThat(set).isSameInstanceAs(this.<String>of());
      }
    
      public void testCopyOf_iterator_oneElement() {
        Iterator<String> iterator = singletonIterator("a");
        Set<String> set = copyOf(iterator);
        assertEquals(singleton("a"), set);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 18.5K bytes
    - Click Count (0)
Back to Top