Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. android/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)
  4. android/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. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/JavaEcosystemAttributesDescriberTest.groovy

                .attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 11)
                .attribute(ProjectInternal.STATUS_ATTRIBUTE, "release")
    
            then:
            describer.describeAttributeSet(attributes.asMap()) == "a library for use during compile-time, with a release status, compatible with Java 11, packaged as a jar"
        }
    
        def "describes a library with MAX_VALUE target JVM version"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 13 17:05:19 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. test/named.go

    	asInt(Int(0))
    	isInt(Int(0))
    	i = 10
    	asInt(*&i)
    	isInt(*&i)
    	asInt(23)
    	asInt(Int(f))
    	isInt(Int(f))
    
    	asMap(m)
    	isMap(m)
    	asMap(nil)
    	m = nil
    	asMap(make(Map))
    	isMap(make(Map))
    	asMap(*&m)
    	isMap(*&m)
    	asMap(Map(nil))
    	isMap(Map(nil))
    	asMap(Map{})
    	isMap(Map{})
    
    	asSlice(slice)
    	isSlice(slice)
    	asSlice(make(Slice, 5))
    	isSlice(make(Slice, 5))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/AbstractMultimap.java

        return Spliterators.spliterator(valueIterator(), size(), 0);
      }
    
      @LazyInit @CheckForNull private transient Map<K, Collection<V>> asMap;
    
      @Override
      public Map<K, Collection<V>> asMap() {
        Map<K, Collection<V>> result = asMap;
        return (result == null) ? asMap = createAsMap() : result;
      }
    
      abstract Map<K, Collection<V>> createAsMap();
    
      // Comparison and hashing
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  8. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2K bytes
    - Viewed (0)
  9. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

                println("onResponseStarted ${info.headers.asMap} ${info.negotiatedProtocol}")
                request.read(ByteBuffer.allocateDirect(4096 * 8))
              }
    
              override fun onReadCompleted(
                request: UrlRequest,
                info: UrlResponseInfo,
                byteBuffer: ByteBuffer,
              ) {
                println("onReadCompleted ${info.headers.asMap}")
                byteBuffer.flip()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 24 13:19:43 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. 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)
Back to top