Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 45 for containsEntry (0.1 seconds)

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

        assertTrue(multimap().containsEntry(k0(), v3()));
        assertTrue(multimap().containsEntry(k3(), v3()));
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      public void testPutAllWithNullValue() {
        Multimap<K, V> source = getSubjectGenerator().create(mapEntry(k0(), null));
        assertTrue(multimap().putAll(source));
        assertTrue(multimap().containsEntry(k0(), null));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 21:10:54 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java

        assertTrue(multimap().containsEntry(k0(), v3()));
        assertTrue(multimap().containsEntry(k3(), v3()));
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      public void testPutAllWithNullValue() {
        Multimap<K, V> source = getSubjectGenerator().create(mapEntry(k0(), null));
        assertTrue(multimap().putAll(source));
        assertTrue(multimap().containsEntry(k0(), null));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 21:10:54 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

        assertTrue(multimap().entries().remove(mapEntry(k0(), v0())));
        expectMissing(mapEntry(k0(), v0()));
        assertEquals(getNumElements() - 1, multimap().size());
        assertFalse(multimap().containsEntry(k0(), v0()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAllPropagatesToMultimap() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 21:10:54 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        Map<Integer, Integer> map = cache.getAll(ImmutableList.of(10, 20, 30, 54, 443, 1));
    
        assertThat(map).containsEntry(10, 20);
        assertThat(map).containsEntry(20, 0);
        assertThat(map).containsEntry(30, 1);
        assertThat(map).containsEntry(54, 2);
        assertThat(map).containsEntry(443, 3);
        assertThat(map).containsEntry(1, 4);
        assertThat(cache.get(6)).isEqualTo(5);
        assertThat(cache.apply(7)).isEqualTo(6);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

        assertTrue(multimap().keys().entrySet().remove(Multisets.immutableEntry(k0(), 2)));
        assertEquals(1, multimap().size());
        assertTrue(multimap().containsEntry(k1(), v0()));
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 4.3K bytes
    - Click Count (1)
  6. guava-tests/test/com/google/common/collect/CompactHashMapTest.java

        map.put(1, "1");
        Entry<Integer, String> entry = getOnlyElement(map.entrySet());
        map.remove(1);
        entry.setValue("one");
        assertThat(map).containsEntry(1, "one");
      }
    
      public void testAllocArraysDefault() {
        CompactHashMap<Integer, String> map = CompactHashMap.create();
        assertThat(map.needsAllocArrays()).isTrue();
        assertThat(map.entries).isNull();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(map.remove(two)).isSameInstanceAs(three);
        assertThat(map.put(three, one)).isNull();
        assertThat(map.put(one, two)).isNull();
    
        assertThat(map).containsEntry(three, one);
        assertThat(map).containsEntry(one, two);
    
        // TODO(cgruber): Confirm with fry@ that this is a reasonable substitute.
        // Set<Entry<Object, Object>> entries = map.entrySet();
        // assertThat(entries).containsExactly(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertThat(map.remove(two)).isSameInstanceAs(three);
        assertThat(map.put(three, one)).isNull();
        assertThat(map.put(one, two)).isNull();
    
        assertThat(map).containsEntry(three, one);
        assertThat(map).containsEntry(one, two);
    
        // TODO(cgruber): Confirm with fry@ that this is a reasonable substitute.
        // Set<Entry<Object, Object>> entries = map.entrySet();
        // assertThat(entries).containsExactly(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

        assertTrue(multimap().keys().entrySet().remove(Multisets.immutableEntry(k0(), 2)));
        assertEquals(1, multimap().size());
        assertTrue(multimap().containsEntry(k1(), v0()));
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 4.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/AbstractMultimap.java

        for (Collection<V> collection : asMap().values()) {
          if (collection.contains(value)) {
            return true;
          }
        }
    
        return false;
      }
    
      @Override
      public boolean containsEntry(@Nullable Object key, @Nullable Object value) {
        Collection<V> collection = asMap().get(key);
        return collection != null && collection.contains(value);
      }
    
      @CanIgnoreReturnValue
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 6.4K bytes
    - Click Count (0)
Back to Top