Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 53 for entryIterator (0.12 sec)

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

        return Iterators.<@Nullable Entry<K, V>>getNext(entryIterator(), null);
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> lastEntry() {
        return Iterators.<@Nullable Entry<K, V>>getNext(descendingEntryIterator(), null);
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> pollFirstEntry() {
        return Iterators.pollNext(entryIterator());
      }
    
      @Override
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 15 18:11:44 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/DescendingMultiset.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A skeleton implementation of a descending multiset. Only needs {@code forwardMultiset()} and
     * {@code entryIterator()}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    abstract class DescendingMultiset<E extends @Nullable Object> extends ForwardingMultiset<E>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 24 16:03:45 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/DescendingMultiset.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A skeleton implementation of a descending multiset. Only needs {@code forwardMultiset()} and
     * {@code entryIterator()}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    abstract class DescendingMultiset<E extends @Nullable Object> extends ForwardingMultiset<E>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/AbstractNavigableMap.java

        return Iterators.<@Nullable Entry<K, V>>getNext(entryIterator(), null);
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> lastEntry() {
        return Iterators.<@Nullable Entry<K, V>>getNext(descendingEntryIterator(), null);
      }
    
      @Override
      @CheckForNull
      public Entry<K, V> pollFirstEntry() {
        return Iterators.pollNext(entryIterator());
      }
    
      @Override
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jun 15 18:11:44 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/AbstractMultimap.java

        public boolean equals(@CheckForNull Object obj) {
          return Sets.equalsImpl(this, obj);
        }
      }
    
      abstract Iterator<Entry<K, V>> entryIterator();
    
      Spliterator<Entry<K, V>> entrySpliterator() {
        return Spliterators.spliterator(
            entryIterator(), size(), (this instanceof SetMultimap) ? Spliterator.DISTINCT : 0);
      }
    
      @LazyInit @CheckForNull private transient Set<K> keySet;
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ForwardingMap.java

       */
      @CheckForNull
      protected V standardRemove(@CheckForNull Object key) {
        Iterator<Entry<K, V>> entryIterator = entrySet().iterator();
        while (entryIterator.hasNext()) {
          Entry<K, V> entry = entryIterator.next();
          if (Objects.equal(entry.getKey(), key)) {
            V value = entry.getValue();
            entryIterator.remove();
            return value;
          }
        }
        return null;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

          return frequency;
        }
    
        @Override
        Iterator<E> elementIterator() {
          return Multisets.elementIterator(entryIterator());
        }
    
        @Override
        Iterator<Entry<E>> entryIterator() {
          final Iterator<Map.Entry<E, Integer>> backingEntries = backingMap.entrySet().iterator();
          return new UnmodifiableIterator<Multiset.Entry<E>>() {
            @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/AbstractMultimap.java

        @Override
        Multimap<K, V> multimap() {
          return AbstractMultimap.this;
        }
    
        @Override
        public Iterator<Entry<K, V>> iterator() {
          return entryIterator();
        }
      }
    
      @WeakOuter
      class EntrySet extends Entries implements Set<Entry<K, V>> {
        @Override
        public int hashCode() {
          return Sets.hashCodeImpl(this);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 6.6K bytes
    - Viewed (0)
Back to top