Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for hasNext (0.04 sec)

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

        abstract T output(@ParametricNullness K key, @ParametricNullness V value);
    
        @Override
        public boolean hasNext() {
          return keyIterator.hasNext() || valueIterator.hasNext();
        }
    
        @Override
        @ParametricNullness
        public T next() {
          if (!valueIterator.hasNext()) {
            Entry<K, Collection<V>> mapEntry = keyIterator.next();
            key = mapEntry.getKey();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 48.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableMultimap.java

          @Nullable K currentKey = null;
          Iterator<V> valueItr = emptyIterator();
    
          @Override
          public boolean hasNext() {
            return valueItr.hasNext() || asMapItr.hasNext();
          }
    
          @Override
          public Entry<K, V> next() {
            if (!valueItr.hasNext()) {
              Entry<K, ? extends ImmutableCollection<V>> entry = asMapItr.next();
              currentKey = entry.getKey();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 09 15:58:48 UTC 2025
    - 27.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMultimap.java

          @Nullable K currentKey = null;
          Iterator<V> valueItr = emptyIterator();
    
          @Override
          public boolean hasNext() {
            return valueItr.hasNext() || asMapItr.hasNext();
          }
    
          @Override
          public Entry<K, V> next() {
            if (!valueItr.hasNext()) {
              Entry<K, ? extends ImmutableCollection<V>> entry = asMapItr.next();
              currentKey = entry.getKey();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 09 15:58:48 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      public void testIteratorRemoveMultiple() {
        Iterator<Entry<K, V>> entryItr = getMap().entrySet().iterator();
        while (entryItr.hasNext()) {
          entryItr.next();
          entryItr.remove();
        }
        assertTrue(getMap().isEmpty());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 16 03:23:31 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

      @CollectionSize.Require(SEVERAL)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      public void testIteratorRemoveMultiple() {
        Iterator<Entry<K, V>> entryItr = getMap().entrySet().iterator();
        while (entryItr.hasNext()) {
          entryItr.next();
          entryItr.remove();
        }
        assertTrue(getMap().isEmpty());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 16 03:23:31 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

            throw new ConcurrentModificationException();
          }
        }
    
        @Override
        public boolean hasNext() {
          checkForConcurrentModification();
          return entryIndex >= 0;
        }
    
        @Override
        @ParametricNullness
        public T next() {
          if (!hasNext()) {
            throw new NoSuchElementException();
          }
          T result = result(entryIndex);
          toRemove = entryIndex;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 05 23:15:58 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Iterables.java

             * throwing an IllegalStateException.
             */
            return new Iterator<T>() {
              boolean atStart = true;
    
              @Override
              public boolean hasNext() {
                return iterator.hasNext();
              }
    
              @Override
              @ParametricNullness
              public T next() {
                T result = iterator.next();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertTrue(iter.hasNext());
        Entry<String, String> entry = iter.next();
        assertEquals("Hello", entry.getKey());
        assertEquals("World", entry.getValue());
        assertTrue(iter.hasNext());
    
        entry = iter.next();
        assertEquals("first", entry.getKey());
        assertEquals("second", entry.getValue());
        assertTrue(iter.hasNext());
    
        entry = iter.next();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Maps.java

              Iterator<Entry<K, V>> entryIterator) {
        return new UnmodifiableIterator<Entry<K, V>>() {
          @Override
          public boolean hasNext() {
            return entryIterator.hasNext();
          }
    
          @Override
          public Entry<K, V> next() {
            return unmodifiableEntry(entryIterator.next());
          }
        };
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 163.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeMultiset.java

          @Override
          public boolean hasNext() {
            if (current == null) {
              return false;
            } else if (range.tooHigh(current.getElement())) {
              current = null;
              return false;
            } else {
              return true;
            }
          }
    
          @Override
          public Entry<E> next() {
            if (!hasNext()) {
              throw new NoSuchElementException();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 09 15:58:48 UTC 2025
    - 33.9K bytes
    - Viewed (0)
Back to top