Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 248 for AsMap (0.04 sec)

  1. android/guava/src/com/google/common/collect/SortedSetMultimap.java

       *
       * <p>When passed a key that is present in the map, {@code asMap().get(Object)} has the same
       * behavior as {@link #get}, returning a live collection. When passed a key that is not present,
       * however, {@code asMap().get(Object)} returns {@code null} instead of an empty collection.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/attributes/AbstractAttributeContainer.java

     * {@link #hashCode} and {@link #equals}.
     */
    public abstract class AbstractAttributeContainer implements AttributeContainerInternal {
    
        @Override
        public Map<Attribute<?>, ?> asMap() {
            return asImmutable().asMap();
        }
    
        @Override
        public boolean isEmpty() {
            return keySet().isEmpty();
        }
    
        @Override
        public boolean contains(Attribute<?> key) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. android/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)
  4. guava/src/com/google/common/collect/AbstractSortedSetMultimap.java

       *
       * <p>When passed a key that is present in the map, {@code asMap().get(Object)} has the same
       * behavior as {@link #get}, returning a live collection. When passed a key that is not present,
       * however, {@code asMap().get(Object)} returns {@code null} instead of an empty collection.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 5.4K bytes
    - Viewed (0)
  5. android/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)
  6. android/guava/src/com/google/common/collect/Multimap.java

       * nor do its entries support {@link Entry#setValue setValue}.
       */
      Map<K, Collection<V>> asMap();
    
      // Comparison and hashing
    
      /**
       * Compares the specified object with this multimap for equality. Two multimaps are equal when
       * their map views, as returned by {@link #asMap}, are also equal.
       *
       * <p>In general, two multimaps with identical key-value mappings may or may not be equal,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/EmptyImmutableSetMultimap.java

       * just back this out once we stop doing that (which we'll do after our internal GWT setup
       * changes).
       */
      @Override
      public ImmutableMap<Object, Collection<Object>> asMap() {
        return super.asMap();
      }
    
      private Object readResolve() {
        return INSTANCE; // preserve singleton property
      }
    
      private static final long serialVersionUID = 0;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Aug 18 16:48:17 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultNamedDomainObjectSetSpec.groovy

            filtered.index.pendingAsMap.size() == 1
    
            expect: "list contains the right elements when iterated"
            filtered.asList()*.name == ["realized2", "unrealized2"]
    
            and: "unrealized element get realized"
            container.index.asMap().size() == 4
            container.index.pendingAsMap.size() == 2
    
            filtered.index.asMap().size() == 2
            filtered.index.pendingAsMap.size() == 1
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 08:21:31 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

          try {
            multimap.asMap().get(presentKey).remove(sampleValue);
            fail("asMap().get().remove() succeeded on unmodifiable multimap");
          } catch (UnsupportedOperationException expected) {
          }
          assertMultimapRemainsUnmodified(multimap, originalEntries);
    
          try {
            multimap.asMap().values().iterator().next().remove(sampleValue);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 20:31:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java

        for (Collection<V> valueCollection : multimap().asMap().values()) {
          SortedSet<V> valueSet = (SortedSet<V>) valueCollection;
          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
      public void testAsMapGetImplementsSortedSet() {
        for (K key : multimap().keySet()) {
          SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 2.3K bytes
    - Viewed (0)
Back to top