Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 457 for EntrySet (0.17 seconds)

  1. android/guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

      }
    
      public void testEntrySet() {
        Map<String, Integer> map = create();
        Set<Entry<String, Integer>> entrySet = map.entrySet();
        assertTrue(entrySet instanceof SynchronizedSet);
        assertThat(((SynchronizedSet<?>) entrySet).mutex).isSameInstanceAs(mutex);
      }
    
      public void testEquals() {
        boolean unused = create().equals(new HashMap<String, Integer>());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        Set<Entry<Integer, Character>> entrySet = row.entrySet();
        assertTrue(entrySet.contains(immutableEntry(10, 'X')));
        assertTrue(entrySet.contains(immutableEntry(20, 'X')));
        assertFalse(entrySet.contains(immutableEntry(15, 'X')));
        entrySet = row.tailMap(15).entrySet();
        assertFalse(entrySet.contains(immutableEntry(10, 'X')));
        assertTrue(entrySet.contains(immutableEntry(20, 'X')));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 15.3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/Multisets.java

        }
    
        @LazyInit transient @Nullable Set<Multiset.Entry<E>> entrySet;
    
        @SuppressWarnings("unchecked")
        @Override
        public Set<Multiset.Entry<E>> entrySet() {
          Set<Multiset.Entry<E>> es = entrySet;
          return (es == null)
              // Safe because the returned set is made unmodifiable and Entry
              // itself is readonly
              ? entrySet = (Set) Collections.unmodifiableSet(delegate.entrySet())
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.3K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/Multisets.java

        }
    
        @LazyInit transient @Nullable Set<Multiset.Entry<E>> entrySet;
    
        @SuppressWarnings("unchecked")
        @Override
        public Set<Multiset.Entry<E>> entrySet() {
          Set<Multiset.Entry<E>> es = entrySet;
          return (es == null)
              // Safe because the returned set is made unmodifiable and Entry
              // itself is readonly
              ? entrySet = (Set) Collections.unmodifiableSet(delegate.entrySet())
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.2K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/FilteredKeySetMultimap.java

      }
    
      @Override
      public Set<Entry<K, V>> entries() {
        return (Set<Entry<K, V>>) super.entries();
      }
    
      @Override
      Set<Entry<K, V>> createEntries() {
        return new EntrySet();
      }
    
      private final class EntrySet extends Entries implements Set<Entry<K, V>> {
        @Override
        public int hashCode() {
          return Sets.hashCodeImpl(this);
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/Synchronized.java

            }
            return elementSet;
          }
        }
    
        @Override
        public Set<Multiset.Entry<E>> entrySet() {
          synchronized (mutex) {
            if (entrySet == null) {
              entrySet = typePreservingSet(delegate().entrySet(), mutex);
            }
            return entrySet;
          }
        }
    
        @Override
        public boolean equals(@Nullable Object o) {
          if (o == this) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 53K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/FilteredEntryMultimap.java

              if (oldCount <= occurrences) {
                itr.remove();
              }
            }
          }
          return oldCount;
        }
    
        @Override
        public Set<Multiset.Entry<K>> entrySet() {
          return new Multisets.EntrySet<K>() {
    
            @Override
            Multiset<K> multiset() {
              return Keys.this;
            }
    
            @Override
            public Iterator<Multiset.Entry<K>> iterator() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertThat(diff1.entriesOnlyOnLeft().entrySet())
            .containsExactly(immutableEntry(4, "d"), immutableEntry(2, "b"))
            .inOrder();
        assertThat(diff1.entriesOnlyOnRight().entrySet()).contains(immutableEntry(6, "z"));
        assertThat(diff1.entriesInCommon().entrySet()).contains(immutableEntry(1, "a"));
        assertThat(diff1.entriesDiffering().entrySet())
            .containsExactly(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/Synchronized.java

            }
            return elementSet;
          }
        }
    
        @Override
        public Set<Multiset.Entry<E>> entrySet() {
          synchronized (mutex) {
            if (entrySet == null) {
              entrySet = typePreservingSet(delegate().entrySet(), mutex);
            }
            return entrySet;
          }
        }
    
        @Override
        public boolean equals(@Nullable Object o) {
          if (o == this) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Aug 08 15:11:10 GMT 2025
    - 56.9K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        TestHashSet<Entry<String>> entrySet = new TestHashSet<>();
        when((Comparator<Comparable<String>>) toCopy.comparator())
            .thenReturn(Ordering.<Comparable<String>>natural());
        when(toCopy.entrySet()).thenReturn(entrySet);
        ImmutableSortedMultiset<String> unused = ImmutableSortedMultiset.copyOfSorted(toCopy);
        assertTrue(entrySet.toArrayCalled);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.8K bytes
    - Click Count (0)
Back to Top