Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for getKeyForNullValue (0.11 sec)

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

        assertGet(getKeyForNullValue(), ImmutableList.of());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
      public void testRemoveNullValuePresent() {
        initMultimapWithNullValue();
    
        assertTrue(multimap().remove(getKeyForNullValue(), null));
    
        expectMissing(mapEntry(getKeyForNullValue(), (V) null));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 20:54:16 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

        assertGet(getKeyForNullValue(), ImmutableList.of());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
      public void testRemoveNullValuePresent() {
        initMultimapWithNullValue();
    
        assertTrue(multimap().remove(getKeyForNullValue(), null));
    
        expectMissing(mapEntry(getKeyForNullValue(), (V) null));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 20:54:16 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

            v3(),
            getMap()
                .merge(
                    getKeyForNullValue(),
                    v3(),
                    (oldV, newV) -> {
                      throw new AssertionFailedError(
                          "Should not call merge function if key was mapped to null");
                    }));
        expectReplacement(entry(getKeyForNullValue(), v3()));
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

            getMap().put(getKeyForNullValue(), null));
        expectContents(createArrayWithNullValue());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testPut_replaceNullValueWithNonNullSupported() {
        Entry<K, V> newEntry = entry(getKeyForNullValue(), v3());
        initMapWithNullValue();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java

        assertNull(
            "putIfAbsent(existingKeyWithNullValue, value) should return null",
            getMap().putIfAbsent(getKeyForNullValue(), v3()));
        assertEquals("Map should now contain the new value", v3(), getMap().get(getKeyForNullValue()));
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 02:04:51 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutIfAbsentTester.java

        assertNull(
            "putIfAbsent(existingKeyWithNullValue, value) should return null",
            getMap().putIfAbsent(getKeyForNullValue(), v3()));
        assertEquals("Map should now contain the new value", v3(), getMap().get(getKeyForNullValue()));
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 16 02:04:51 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

            v3(),
            getMap()
                .merge(
                    getKeyForNullValue(),
                    v3(),
                    (oldV, newV) -> {
                      throw new AssertionFailedError(
                          "Should not call merge function if key was mapped to null");
                    }));
        expectReplacement(entry(getKeyForNullValue(), v3()));
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsKeyTester.java

      public void testContains_keyWithNullValueContained() {
        initMapWithNullValue();
        assertTrue(
            "containsKey(keyForNullValue) should return true",
            getMap().containsKey(getKeyForNullValue()));
      }
    
      public void testContains_wrongType() {
        try {
          // noinspection SuspiciousMethodCalls
          assertFalse(
              "containsKey(wrongType) should return false or throw",
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 26 21:06:36 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

            getMap().put(getKeyForNullValue(), null));
        expectContents(createArrayWithNullValue());
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testPut_replaceNullValueWithNonNullSupported() {
        Entry<K, V> newEntry = entry(getKeyForNullValue(), v3());
        initMapWithNullValue();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(ALLOWS_NULL_VALUES)
      public void testContainsEntryWithNullValuePresent() {
        initMultimapWithNullValue();
        assertContains(multimap().entries(), mapEntry(getKeyForNullValue(), (V) null));
      }
    
      @MapFeature.Require(ALLOWS_NULL_VALUE_QUERIES)
      public void testContainsEntryWithNullValueAbsent() {
        assertFalse(multimap().entries().contains(mapEntry(k0(), null)));
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 21:10:54 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top