Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for getValueForNullKey (0.12 sec)

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

      public void testRemoveAllNullKeyPresent() {
        initMultimapWithNullKey();
    
        assertContentsAnyOrder(multimap().removeAll(null), getValueForNullKey());
    
        expectMissing(mapEntry((K) null, getValueForNullKey()));
      }
    
      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_ANY_NULL_QUERIES})
      public void testRemoveAllNullKeyAbsent() {
        assertEmpty(multimap().removeAll(null));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java

            getValueForNullKey(),
            getMap()
                .computeIfAbsent(
                    getKeyForNullValue(),
                    k -> {
                      assertEquals(getKeyForNullValue(), k);
                      return getValueForNullKey();
                    }));
        expectReplacement(entry(getKeyForNullValue(), getValueForNullKey()));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testContainsEntryWithNullKeyPresent() {
        initMultimapWithNullKey();
        assertContains(multimap().entries(), mapEntry((K) null, getValueForNullKey()));
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
      public void testContainsEntryWithNullKeyAbsent() {
        assertFalse(multimap().entries().contains(mapEntry(null, v0())));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java

      public void testRemoveAllNullKeyPresent() {
        initMultimapWithNullKey();
    
        assertContentsAnyOrder(multimap().removeAll(null), getValueForNullKey());
    
        expectMissing(mapEntry((K) null, getValueForNullKey()));
      }
    
      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_ANY_NULL_QUERIES})
      public void testRemoveAllNullKeyAbsent() {
        assertEmpty(multimap().removeAll(null));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java

        assertEquals(
            "remove(null) should return the associated value",
            getValueForNullKey(),
            getMap().remove(null));
        assertEquals(
            "remove(present) should decrease a map's size by one.", initialSize - 1, getMap().size());
        expectMissing(entry(null, getValueForNullKey()));
      }
    
      @MapFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
      public void testRemoveNullKeyPresent() {
        initMultimapWithNullKey();
    
        assertTrue(multimap().remove(null, getValueForNullKey()));
    
        expectMissing(mapEntry((K) null, getValueForNullKey()));
        assertGet(getKeyForNullValue(), ImmutableList.<V>of());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testCompute_presentNullToPresentNonnull() {
        initMapWithNullValue();
        V value = getValueForNullKey();
        assertEquals(
            "Map.compute(presentMappedToNull, functionReturningValue) should return new value",
            value,
            getMap()
                .compute(
                    getKeyForNullValue(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java

      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testCompute_presentNullToPresentNonnull() {
        initMapWithNullValue();
        V value = getValueForNullKey();
        assertEquals(
            "Map.compute(presentMappedToNull, functionReturningValue) should return new value",
            value,
            getMap()
                .compute(
                    getKeyForNullValue(),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_KEYS})
      public void testRemoveNullKeyPresent() {
        initMultimapWithNullKey();
    
        assertTrue(multimap().remove(null, getValueForNullKey()));
    
        expectMissing(mapEntry((K) null, getValueForNullKey()));
        assertGet(getKeyForNullValue(), ImmutableList.<V>of());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

      public void testPut_nullKeySupportedPresent() {
        Entry<K, V> newEntry = entry(null, v3());
        initMapWithNullKey();
        assertEquals(
            "put(present, value) should return the associated value",
            getValueForNullKey(),
            put(newEntry));
    
        Entry<K, V>[] expected = createArrayWithNullKey();
        expected[getNullLocation()] = newEntry;
        expectContents(expected);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top