Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 51 for EntryIterator (0.28 sec)

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

        final Iterator<Map.Entry<E, Count>> entryIterator;
        Map.@Nullable Entry<E, Count> currentEntry;
        int occurrencesLeft;
        boolean canRemove;
    
        MapBasedMultisetIterator() {
          this.entryIterator = backingMap.entrySet().iterator();
        }
    
        @Override
        public boolean hasNext() {
          return occurrencesLeft > 0 || entryIterator.hasNext();
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/DescendingMultiset.java

    import java.util.NavigableSet;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A skeleton implementation of a descending multiset. Only needs {@code forwardMultiset()} and
     * {@code entryIterator()}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    abstract class DescendingMultiset<E extends @Nullable Object> extends ForwardingMultiset<E>
        implements SortedMultiset<E> {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/AbstractNavigableMap.java

        return Iterators.<@Nullable Entry<K, V>>getNext(entryIterator(), null);
      }
    
      @Override
      public @Nullable Entry<K, V> lastEntry() {
        return Iterators.<@Nullable Entry<K, V>>getNext(descendingEntryIterator(), null);
      }
    
      @Override
      public @Nullable Entry<K, V> pollFirstEntry() {
        return Iterators.pollNext(entryIterator());
      }
    
      @Override
      public @Nullable Entry<K, V> pollLastEntry() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        Iterator<Entry<String, Integer>> entryIterator = multimap.entries().iterator();
        assertEquals(immutableEntry("foo", 5), entryIterator.next());
        assertEquals(immutableEntry("bar", 4), entryIterator.next());
        assertEquals(immutableEntry("foo", 3), entryIterator.next());
        assertEquals(immutableEntry("cow", 2), entryIterator.next());
        assertEquals(immutableEntry("bar", 1), entryIterator.next());
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/DescendingMultiset.java

    import java.util.Set;
    import java.util.SortedSet;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A skeleton implementation of a descending multiset. Only needs {@code forwardMultiset()} and
     * {@code entryIterator()}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    abstract class DescendingMultiset<E extends @Nullable Object> extends ForwardingMultiset<E>
        implements SortedMultiset<E> {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/DescendingMultiset.java

    import java.util.NavigableSet;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A skeleton implementation of a descending multiset. Only needs {@code forwardMultiset()} and
     * {@code entryIterator()}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    abstract class DescendingMultiset<E extends @Nullable Object> extends ForwardingMultiset<E>
        implements SortedMultiset<E> {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/AbstractNavigableMap.java

        return Iterators.<@Nullable Entry<K, V>>getNext(entryIterator(), null);
      }
    
      @Override
      public @Nullable Entry<K, V> lastEntry() {
        return Iterators.<@Nullable Entry<K, V>>getNext(descendingEntryIterator(), null);
      }
    
      @Override
      public @Nullable Entry<K, V> pollFirstEntry() {
        return Iterators.pollNext(entryIterator());
      }
    
      @Override
      public @Nullable Entry<K, V> pollLastEntry() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ForwardingMap.java

       */
      protected @Nullable V standardRemove(@Nullable Object key) {
        Iterator<Entry<K, V>> entryIterator = entrySet().iterator();
        while (entryIterator.hasNext()) {
          Entry<K, V> entry = entryIterator.next();
          if (Objects.equals(entry.getKey(), key)) {
            V value = entry.getValue();
            entryIterator.remove();
            return value;
          }
        }
        return null;
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        @Nullable Entry<K, Collection<V>> pollAsMapEntry(
            Iterator<Entry<K, Collection<V>>> entryIterator) {
          if (!entryIterator.hasNext()) {
            return null;
          }
          Entry<K, Collection<V>> entry = entryIterator.next();
          Collection<V> output = createCollection();
          output.addAll(entry.getValue());
          entryIterator.remove();
          return immutableEntry(entry.getKey(), unmodifiableCollectionSubclass(output));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 48.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        Entry<String, String> firstEntry = entries.iterator().next();
        entries.remove(firstEntry);
        assertFalse(underlying.containsKey("f"));
    
        Iterator<Entry<String, String>> entryIterator = entries.iterator();
        entryIterator.next();
        entryIterator.remove();
        assertFalse(underlying.containsKey("g"));
    
        assertTrue(underlying.isEmpty());
        assertTrue(map.isEmpty());
        assertTrue(keys.isEmpty());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 12.4K bytes
    - Viewed (0)
Back to top