Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 141 for asMap (0.05 sec)

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

          assertTrue(multimap.containsEntry(entry.getKey(), entry.getValue()));
          size++;
        }
        assertEquals(expectedSize, size);
    
        int size2 = 0;
        for (Entry<K, Collection<V>> entry2 : multimap.asMap().entrySet()) {
          size2 += entry2.getValue().size();
        }
        assertEquals(expectedSize, size2);
      }
    
      @CollectionSize.Require(ZERO)
      public void testIsEmptyYes() {
        assertTrue(multimap().isEmpty());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java

      public void testAsMapValuesImplementList() {
        for (Collection<V> valueCollection : multimap().asMap().values()) {
          assertTrue(valueCollection instanceof List);
        }
      }
    
      public void testAsMapGetImplementsList() {
        for (K key : multimap().keySet()) {
          assertTrue(multimap().asMap().get(key) instanceof List);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableMultimapAsMapImplementsMapTest.java

      protected Map<String, Collection<Integer>> makeEmptyMap() {
        return ImmutableMultimap.<String, Integer>of().asMap();
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Multimap<String, Integer> delegate = HashMultimap.create();
        populate(delegate);
        return ImmutableMultimap.copyOf(delegate).asMap();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MultimapsTransformValuesAsMapTest.java

            .asMap();
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        ListMultimap<String, Integer> delegate = ArrayListMultimap.create();
        populate(delegate);
        return Multimaps.transformValues(delegate, Functions.<Integer>identity()).asMap();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/CacheManualTest.java

        assertFalse(cache.asMap().containsKey(two));
        assertFalse(cache.asMap().containsValue(one));
    
        cache.put(two, one);
    
        assertSame(two, cache.getIfPresent(one));
        stats = cache.stats();
        assertEquals(3, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(0, stats.loadExceptionCount());
        assertEquals(2, stats.hitCount());
        assertSame(two, cache.asMap().get(one));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 5.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MultimapsFilterEntriesAsMapTest.java

        Multimap<String, Integer> multimap = createMultimap();
        return multimap.asMap();
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Multimap<String, Integer> multimap = createMultimap();
        populate(multimap);
        return multimap.asMap();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            Object newValue = new Object();
            assertSame(entry.getValue(), cache.asMap().replace(entry.getKey(), newValue));
            assertTrue(cache.asMap().replace(entry.getKey(), newValue, entry.getValue()));
            Object newKey = new Object();
            assertNull(cache.asMap().replace(newKey, entry.getValue()));
            assertFalse(cache.asMap().replace(newKey, entry.getValue(), newValue));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            Object newValue = new Object();
            assertSame(entry.getValue(), cache.asMap().replace(entry.getKey(), newValue));
            assertTrue(cache.asMap().replace(entry.getKey(), newValue, entry.getValue()));
            Object newKey = new Object();
            assertNull(cache.asMap().replace(newKey, entry.getValue()));
            assertFalse(cache.asMap().replace(newKey, entry.getValue(), newValue));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top