Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 275 for EntrySet (0.12 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

      public void testEntrySet_clear() {
        getMultiset().entrySet().clear();
        assertTrue("multiset not empty after entrySet().clear()", getMultiset().isEmpty());
      }
    
      @CollectionSize.Require(ONE)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      public void testEntrySet_iteratorRemovePropagates() {
        Iterator<Multiset.Entry<E>> iterator = getMultiset().entrySet().iterator();
        assertTrue(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java

          Set<Entry<Object, Object>> entrySet = cache.asMap().entrySet();
          entrySet.clear();
          checkEmpty(entrySet);
          checkEmpty(cache);
        }
      }
    
      public void testEntrySet_empty_remove() {
        for (LoadingCache<Object, Object> cache : caches()) {
          Set<Entry<Object, Object>> entrySet = cache.asMap().entrySet();
          assertFalse(entrySet.remove(null));
          assertFalse(entrySet.remove(entryOf(6, 6)));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ForwardingMultiset.java

       * {@link #entrySet}, you may wish to override {@link #hashCode} to forward to this
       * implementation.
       *
       * @since 7.0
       */
      protected int standardHashCode() {
        return entrySet().hashCode();
      }
    
      /**
       * A sensible definition of {@link #toString} as {@code entrySet().toString()} . If you override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java

        assertFalse(
            "multiset.entrySet() contains a non-entry", getMultiset().entrySet().contains(e0()));
      }
    
      public void testEntrySet_twice() {
        assertEquals(
            "calling multiset.entrySet() twice returned unequal sets",
            getMultiset().entrySet(),
            getMultiset().entrySet());
      }
    
      @CollectionSize.Require(ZERO)
      public void testEntrySet_hashCode_size0() {
        assertEquals(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java

        assertFalse(
            "multiset.entrySet() contains a non-entry", getMultiset().entrySet().contains(e0()));
      }
    
      public void testEntrySet_twice() {
        assertEquals(
            "calling multiset.entrySet() twice returned unequal sets",
            getMultiset().entrySet(),
            getMultiset().entrySet());
      }
    
      @CollectionSize.Require(ZERO)
      public void testEntrySet_hashCode_size0() {
        assertEquals(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        assertEquals(0, multiset.size());
        assertEquals(0, multiset.toArray().length);
        assertTrue(multiset.entrySet().isEmpty());
        assertFalse(multiset.iterator().hasNext());
        assertEquals(0, multiset.entrySet().size());
        assertEquals(0, multiset.entrySet().toArray().length);
        assertFalse(multiset.entrySet().iterator().hasNext());
      }
    
      public void testEmptyRangeSubMultisetSupportingAdd(SortedMultiset<E> multiset) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 20:14:36 UTC 2024
    - 26K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/HashBiMapTest.java

        map.remove("bar");
        assertThat(map.entrySet())
            .containsExactly(immutableEntry("foo", 1), immutableEntry("quux", 3))
            .inOrder();
      }
    
      public void testInsertionOrderAfterRemoveLast() {
        BiMap<String, Integer> map = HashBiMap.create();
        map.put("foo", 1);
        map.put("bar", 2);
        map.put("quux", 3);
    
        map.remove("quux");
        assertThat(map.entrySet())
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableEnumMap.java

     *
     * @author Hayward Chan
     */
    final class ImmutableEnumMap<K, V> extends ForwardingImmutableMap<K, V> {
      static <K, V> ImmutableMap<K, V> asImmutable(Map<K, V> map) {
        for (Entry<K, V> entry : checkNotNull(map).entrySet()) {
          checkNotNull(entry.getKey());
          checkNotNull(entry.getValue());
        }
        return new ImmutableEnumMap<K, V>(map);
      }
    
      private ImmutableEnumMap(Map<? extends K, ? extends V> delegate) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ForwardingMap.java

       * {@link #entrySet}. If you override {@link #entrySet}, you may wish to override {@link
       * #containsValue} to forward to this implementation.
       *
       * @since 7.0
       */
      protected boolean standardContainsValue(@Nullable Object value) {
        return Maps.containsValueImpl(this, value);
      }
    
      /**
       * A sensible implementation of {@link Map#entrySet} in terms of the following methods: {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/AbstractImmutableSortedMapMapInterfaceTest.java

        // TODO: can these be moved to MapInterfaceTest?
        for (Entry<K, V> entry : map.entrySet()) {
          assertEquals(entry.getKey() + "=" + entry.getValue(), entry.toString());
        }
    
        assertEquals("{" + JOINER.join(map.entrySet()) + "}", map.toString());
        assertEquals("[" + JOINER.join(map.entrySet()) + "]", map.entrySet().toString());
        assertEquals("[" + JOINER.join(map.keySet()) + "]", map.keySet().toString());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 2K bytes
    - Viewed (0)
Back to top