Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 914 for iterate (0.1 sec)

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

        }
    
        @Override
        public Iterator<E> iterator() {
          return Multisets.elementIterator(multiset().entrySet().iterator());
        }
      }
    
      /**
       * A sensible definition of {@link #iterator} in terms of {@link #entrySet} and {@link
       * #remove(Object)}. If you override either of these methods, you may wish to override {@link
       * #iterator} to forward to this implementation.
       *
       * @since 7.0
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

       * was retrieved.
       */
      @Override
      public Set<Multiset.Entry<E>> entrySet() {
        return super.entrySet();
      }
    
      @Override
      Iterator<E> elementIterator() {
        final Iterator<Map.Entry<E, Count>> backingEntries = backingMap.entrySet().iterator();
        return new Iterator<E>() {
          @CheckForNull Map.Entry<E, Count> toRemove;
    
          @Override
          public boolean hasNext() {
            return backingEntries.hasNext();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/AbstractBiMap.java

          return oldValue;
        }
      }
    
      Iterator<Entry<K, V>> entrySetIterator() {
        final Iterator<Entry<K, V>> iterator = delegate.entrySet().iterator();
        return new Iterator<Entry<K, V>>() {
          @CheckForNull Entry<K, V> entry;
    
          @Override
          public boolean hasNext() {
            return iterator.hasNext();
          }
    
          @Override
          public Entry<K, V> next() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                      public int size() {
                        return deduped.length;
                      }
    
                      @Override
                      public Iterator<String> iterator() {
                        return MinimalCollection.of(deduped).iterator();
                      }
                    };
                  }
                })
            .named("AbstractSet")
            .withFeatures(
                CollectionFeature.NONE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      }
    
      public void testIteratorPastEndException() {
        MinMaxPriorityQueue<Integer> mmHeap = MinMaxPriorityQueue.create();
        mmHeap.addAll(Lists.newArrayList(1, 2));
        Iterator<Integer> it = mmHeap.iterator();
        assertTrue("Iterator has reached end prematurely", it.hasNext());
        it.next();
        it.next();
        assertThrows(NoSuchElementException.class, () -> it.next());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IterablesFilterArrayListTest.java

    public final class IterablesFilterArrayListTest
        extends AbstractFilteredIterableTest<Iterable<Integer>> {
      @Override
      Iterable<Integer> createUnfiltered(Iterable<Integer> contents) {
        return Lists.newArrayList(contents);
      }
    
      @Override
      Iterable<Integer> filter(Iterable<Integer> elements, Predicate<? super Integer> predicate) {
        return Iterables.filter(elements, predicate);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 16 21:55:55 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SynchronizedQueueTest.java

        public E element() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.element();
        }
    
        @Override
        public Iterator<E> iterator() {
          // We explicitly don't lock for iterator()
          assertFalse(Thread.holdsLock(mutex));
          return delegate.iterator();
        }
    
        @Override
        public int size() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.size();
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 20:50:58 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/FilteredMultimapValues.java

      FilteredMultimapValues(FilteredMultimap<K, V> multimap) {
        this.multimap = checkNotNull(multimap);
      }
    
      @Override
      public Iterator<V> iterator() {
        return Maps.valueIterator(multimap.entries().iterator());
      }
    
      @Override
      public boolean contains(@CheckForNull Object o) {
        return multimap.containsValue(o);
      }
    
      @Override
      public int size() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

                    }
                });
            }
        }
    
        @Override
        public Iterator<Lifecycle> iterator() {
            return stream().toList().iterator();
        }
    
        @Override
        public Stream<Lifecycle> stream() {
            return providers.stream().map(ExtensibleEnumProvider::provides).flatMap(Collection::stream);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        assertThat(multimap.keySet()).containsExactly("foo", "bar", "cow").inOrder();
        assertThat(multimap.values()).containsExactly(5, 4, 3, 2, 1).inOrder();
    
        Iterator<Entry<String, Integer>> entryIterator = multimap.entries().iterator();
        assertEquals(immutableEntry("foo", 5), entryIterator.next());
        assertEquals(immutableEntry("bar", 4), entryIterator.next());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top