Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 248 for AsMap (0.04 sec)

  1. guava/src/com/google/common/collect/FilteredEntryMultimap.java

      }
    
      @Override
      Map<K, Collection<V>> createAsMap() {
        return new AsMap();
      }
    
      @Override
      Set<K> createKeySet() {
        return asMap().keySet();
      }
    
      boolean removeEntriesIf(Predicate<? super Entry<K, Collection<V>>> predicate) {
        Iterator<Entry<K, Collection<V>>> entryIterator = unfiltered.asMap().entrySet().iterator();
        boolean changed = false;
        while (entryIterator.hasNext()) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java

          Collection<V> collection = multimap().asMap().get(key);
          if (collection != null) {
            multimap().clear();
            assertEmpty(collection);
          }
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testClearPropagatesToAsMap() {
        Map<K, Collection<V>> asMap = multimap().asMap();
        multimap().clear();
        assertEmpty(asMap);
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java

        Collection<V> result = multimap().asMap().get(k0());
        assertTrue(result.remove(v0()));
        assertFalse(multimap().containsEntry(k0(), v0()));
        assertEquals(2, multimap().size());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testPropagatesRemoveLastElementToMultimap() {
        Collection<V> result = multimap().asMap().get(k0());
        assertTrue(result.remove(v0()));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapTester.java

        assertContentsAnyOrder(multimap().asMap().get(null), getValueForNullKey());
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
      public void testAsMapGetNullKeyAbsent() {
        assertNull(multimap().asMap().get(null));
      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_KEY_QUERIES)
      public void testAsMapGetNullKeyUnsupported() {
        try {
          multimap().asMap().get(null);
          fail("Expected NullPointerException");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 5.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

      public void testAsMapValuesImplementSet() {
        for (Collection<V> valueCollection : multimap().asMap().values()) {
          assertTrue(valueCollection instanceof Set);
        }
      }
    
      public void testAsMapGetImplementsSet() {
        for (K key : multimap().keySet()) {
          assertTrue(multimap().asMap().get(key) instanceof Set);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/UnmodifiableMultimapAsMapImplementsMapTest.java

        return Multimaps.unmodifiableMultimap(LinkedHashMultimap.<String, Integer>create()).asMap();
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Multimap<String, Integer> delegate = LinkedHashMultimap.create();
        populate(delegate);
        return Multimaps.unmodifiableMultimap(delegate).asMap();
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        ConcurrentMap<Integer, Integer> asMap = cache.asMap();
    
        cache.put(10, 100);
        cache.put(2, 52);
    
        asMap.replace(2, 79);
        asMap.replace(3, 60);
    
        assertEquals(null, cache.getIfPresent(3));
        assertEquals(null, asMap.get(3));
    
        assertEquals(Integer.valueOf(79), cache.getIfPresent(2));
        assertEquals(Integer.valueOf(79), asMap.get(2));
    
        asMap.replace(10, 100, 50);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 15K bytes
    - Viewed (0)
  8. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/ValidatePluginsPart2IntegrationTest.groovy

                solutions == [ 'Use type \'java.net.URI\' instead' ]
                additionalData.asMap == [
                    'typeName' : 'MyTask',
                    'propertyName' : 'direct',
                ]
            }
            verifyAll(receivedProblem(1)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        // 1 won't be cached
        assertThat(cache.getUnchecked(1)).isEqualTo(1);
        assertThat(cache.asMap().keySet()).isEmpty();
    
        CacheTesting.processPendingNotifications(cache);
        assertThat(removalListener.getCount()).isEqualTo(1);
    
        // 2 will be cached
        assertThat(cache.getUnchecked(2)).isEqualTo(2);
        assertThat(cache.asMap().keySet()).containsExactly(2);
    
        CacheTesting.processPendingNotifications(cache);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 14.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

          cache.invalidate(key1);
          assertFalse(cache.asMap().containsKey(key1));
          assertTrue(cache.asMap().containsKey(key2));
          assertEquals(1, cache.size());
          assertEquals(ImmutableSet.of(key2), cache.asMap().keySet());
          assertThat(cache.asMap().values()).contains(value2);
          assertEquals(ImmutableSet.of(immutableEntry(key2, value2)), cache.asMap().entrySet());
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 6.1K bytes
    - Viewed (0)
Back to top