Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 90 for AsMap (0.16 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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);
    
        assertThat(cache.getIfPresent(3)).isNull();
        assertThat(asMap.get(3)).isNull();
    
        assertThat(cache.getIfPresent(2)).isEqualTo(79);
        assertThat(asMap.get(2)).isEqualTo(79);
    
        asMap.replace(10, 100, 50);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 15K bytes
    - Click Count (0)
  2. internal/hash/checksum.go

    	if !bytes.Equal(sum, c.Raw) {
    		return ChecksumMismatch{
    			Want: c.Encoded,
    			Got:  base64.StdEncoding.EncodeToString(sum),
    		}
    	}
    	return nil
    }
    
    // AsMap returns the checksum as a map[string]string.
    func (c *Checksum) AsMap() map[string]string {
    	if c == nil || !c.Valid() {
    		return nil
    	}
    	return map[string]string{
    		c.Type.String():       c.Encoded,
    		xhttp.AmzChecksumType: c.Type.ObjType(),
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 22 14:15:21 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        map.put("foo", 1);
        map.put("bar", 2);
        Map<String, Collection<Integer>> asMap = Multimaps.forMap(map).asMap();
        assertEquals(singleton(1), asMap.get("foo"));
        assertThat(asMap.get("cow")).isNull();
        assertTrue(asMap.containsKey("foo"));
        assertFalse(asMap.containsKey("cow"));
    
        Set<Entry<String, Collection<Integer>>> entries = asMap.entrySet();
        assertFalse(entries.contains((Object) 4.5));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 39.2K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        Object three = new Object();
        cache.getUnchecked(three);
        assertThat(cache.stats().hitCount()).isEqualTo(1);
        assertThat(cache.stats().missCount()).isEqualTo(3);
      }
    
      // asMap tests
    
      public void testAsMap() {
        CacheBuilder<Object, Object> builder = createCacheBuilder();
        LocalLoadingCache<Object, Object> cache = makeCache(builder, identityLoader());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        Object three = new Object();
        cache.getUnchecked(three);
        assertThat(cache.stats().hitCount()).isEqualTo(1);
        assertThat(cache.stats().missCount()).isEqualTo(3);
      }
    
      // asMap tests
    
      public void testAsMap() {
        CacheBuilder<Object, Object> builder = createCacheBuilder();
        LocalLoadingCache<Object, Object> cache = makeCache(builder, identityLoader());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/cache/CacheBuilder.java

       * access. Access time is reset by all cache read and write operations (including {@code
       * Cache.asMap().get(Object)} and {@code Cache.asMap().put(K, V)}), but not by {@code
       * containsKey(Object)}, nor by operations on the collection-views of {@link Cache#asMap}}. So,
       * for example, iterating through {@code Cache.asMap().entrySet()} does not reset access time for
       * the entries you retrieve.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 52K bytes
    - Click Count (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

            Integer value = getOnlyElement(entry.getValue());
            builder.put(entry.getKey(), value);
          }
          return builder.buildOrThrow().asMultimap().asMap();
        }
    
        @Override
        @SuppressWarnings({"unchecked", "rawtypes"}) // needed for arrays
        public Entry<String, Collection<Integer>>[] createArray(int length) {
          return new Entry[length];
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  8. guava/src/com/google/common/cache/Cache.java

       * created, it is undefined which of the changes (if any) will be reflected in that iterator.
       */
      @J2ktIncompatible // Thread safety complexity
      ConcurrentMap<K, V> asMap();
    
      /**
       * Performs any pending maintenance operations needed by the cache. Exactly which activities are
       * performed -- if any -- is implementation-dependent.
       */
      void cleanUp();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 8K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/LinkedListMultimap.java

     * {@link #replaceValues} attempts to preserve iteration order as much as possible.
     *
     * <p>The collections returned by {@link #keySet()} and {@link #asMap()} iterate through the keys in
     * the order they were first added to the multimap. Similarly, {@link #get}, {@link #removeAll}, and
     * {@link #replaceValues} return collections that iterate through the values in the order they were
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 27K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/Maps.java

          return asMap(backingSet().subSet(fromKey, toKey), function);
        }
    
        @Override
        public SortedMap<K, V> headMap(@ParametricNullness K toKey) {
          return asMap(backingSet().headSet(toKey), function);
        }
    
        @Override
        public SortedMap<K, V> tailMap(@ParametricNullness K fromKey) {
          return asMap(backingSet().tailSet(fromKey), function);
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
Back to Top