Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 189 for AsMap (0.04 sec)

  1. platforms/jvm/plugins-java-base/src/integTest/groovy/org/gradle/api/plugins/jvm/internal/DefaultJvmPluginServicesTest.groovy

            }
    
            then:
            attrs.asMap() == [
                (CATEGORY_ATTRIBUTE): named(Category, LIBRARY)
            ]
    
            when:
            attrs = AttributeTestUtil.attributesFactory().mutable()
            services.configureAttributes(Stub(HasConfigurableAttributes) { getAttributes() >> attrs }) {
                it.platform()
            }
    
            then:
            attrs.asMap() == [
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. 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: Fri Aug 05 17:21:46 UTC 2022
    - 15.1K bytes
    - Viewed (0)
  3. 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)
  4. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 15K bytes
    - Viewed (0)
  5. android/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)
  6. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top