Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for ALLOWS_NULL_KEYS (0.08 sec)

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

    public class MapCreationTester<K, V> extends AbstractMapTester<K, V> {
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      @CollectionSize.Require(absent = ZERO)
      public void testCreateWithNullKeySupported() {
        initMapWithNullKey();
        expectContents(createArrayWithNullKey());
      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_KEYS)
      @CollectionSize.Require(absent = ZERO)
      public void testCreateWithNullKeyUnsupported() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

        expectUnchanged();
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
      public void testPut_nullKeySupportedNotPresent() {
        assertNull("put(null, value) should return null", put(nullKeyEntry));
        expectAdded(nullKeyEntry);
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
      @CollectionSize.Require(absent = ZERO)
      public void testPut_nullKeySupportedPresent() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java

    public class MapCreationTester<K, V> extends AbstractMapTester<K, V> {
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      @CollectionSize.Require(absent = ZERO)
      public void testCreateWithNullKeySupported() {
        initMapWithNullKey();
        expectContents(createArrayWithNullKey());
      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_KEYS)
      @CollectionSize.Require(absent = ZERO)
      public void testCreateWithNullKeyUnsupported() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

        }
        expectUnchanged();
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
      public void testPutAll_nullKeySupported() {
        putAll(containsNullKey);
        expectAdded(containsNullKey.get(0));
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS)
      public void testPutAll_nullKeyUnsupported() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

     */
    
    package com.google.common.collect.testing.testers;
    
    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_KEYS;
    import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_VALUES;
    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_PUT;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java

        expectUnchanged();
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
      public void testPut_nullKeySupportedNotPresent() {
        assertNull("put(null, value) should return null", put(nullKeyEntry));
        expectAdded(nullKeyEntry);
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
      @CollectionSize.Require(absent = ZERO)
      public void testPut_nullKeySupportedPresent() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

        }
        expectUnchanged();
      }
    
      @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_KEYS})
      public void testPutAll_nullKeySupported() {
        putAll(containsNullKey);
        expectAdded(containsNullKey.get(0));
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEYS)
      public void testPutAll_nullKeyUnsupported() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

    import static com.google.common.collect.testing.Helpers.getMethod;
    import static com.google.common.collect.testing.features.CollectionSize.ZERO;
    import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_KEYS;
    import static com.google.common.collect.testing.features.MapFeature.ALLOWS_NULL_VALUES;
    import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_PUT;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/HashMultimapTest.java

                        }
                        return multimap;
                      }
                    })
                .named("HashMultimap")
                .withFeatures(
                    MapFeature.ALLOWS_NULL_KEYS,
                    MapFeature.ALLOWS_NULL_VALUES,
                    MapFeature.ALLOWS_ANY_NULL_QUERIES,
                    MapFeature.GENERAL_PURPOSE,
                    MapFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/HashMultimapTest.java

                        }
                        return multimap;
                      }
                    })
                .named("HashMultimap")
                .withFeatures(
                    MapFeature.ALLOWS_NULL_KEYS,
                    MapFeature.ALLOWS_NULL_VALUES,
                    MapFeature.ALLOWS_ANY_NULL_QUERIES,
                    MapFeature.GENERAL_PURPOSE,
                    MapFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top