Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 118 for AsMap (0.01 sec)

  1. guava/src/com/google/common/collect/Multimaps.java

      }
    
      /**
       * Returns {@link SetMultimap#asMap multimap.asMap()}, with its type corrected from {@code Map<K,
       * Collection<V>>} to {@code Map<K, Set<V>>}.
       *
       * @since 15.0
       */
      @SuppressWarnings("unchecked")
      // safe by specification of SetMultimap.asMap()
      public static <K extends @Nullable Object, V extends @Nullable Object> Map<K, Set<V>> asMap(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 86.9K bytes
    - Viewed (0)
  2. android/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
      }
    
      @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Serialization.java

      static <K extends @Nullable Object, V extends @Nullable Object> void writeMultimap(
          Multimap<K, V> multimap, ObjectOutputStream stream) throws IOException {
        stream.writeInt(multimap.asMap().size());
        for (Map.Entry<K, Collection<V>> entry : multimap.asMap().entrySet()) {
          stream.writeObject(entry.getKey());
          stream.writeInt(entry.getValue().size());
          for (V value : entry.getValue()) {
            stream.writeObject(value);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        cache.asMap().put(extraKey, extraKey);
        assertSame(extraKey, cache.asMap().get(extraKey));
    
        Object[] lookupKeys = new Object[] {new Object(), new Object(), new Object()};
        assertThrows(InvalidCacheLoadException.class, () -> cache.getAll(asList(lookupKeys)));
    
        for (Object key : lookupKeys) {
          assertTrue(cache.asMap().containsKey(key));
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertEquals(
            Collections.reverseOrder(), ((ImmutableSortedSet<Integer>) multimap.get("x")).comparator());
        assertTrue(multimap.asMap().get("a") instanceof ImmutableSortedSet);
        assertEquals(
            Collections.reverseOrder(),
            ((ImmutableSortedSet<Integer>) multimap.asMap().get("a")).comparator());
      }
    
      public void testBuilderOrderKeysAndValuesBy() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/EmptyImmutableListMultimap.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
      }
    
      @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        Object three = new Object();
        cache.getUnchecked(three);
        assertEquals(1, cache.stats().hitCount());
        assertEquals(3, cache.stats().missCount());
      }
    
      // asMap tests
    
      public void testAsMap() {
        CacheBuilder<Object, Object> builder = createCacheBuilder();
        LocalLoadingCache<Object, Object> cache = makeCache(builder, identityLoader());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AbstractSortedKeySortedSetMultimap.java

        extends AbstractSortedSetMultimap<K, V> {
    
      AbstractSortedKeySortedSetMultimap(SortedMap<K, Collection<V>> map) {
        super(map);
      }
    
      @Override
      public SortedMap<K, Collection<V>> asMap() {
        return (SortedMap<K, Collection<V>>) super.asMap();
      }
    
      @Override
      SortedMap<K, Collection<V>> backingMap() {
        return (SortedMap<K, Collection<V>>) super.backingMap();
      }
    
      @Override
      public SortedSet<K> keySet() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. 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.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

        return map.values().stream().mapToLong(Long::longValue).sum();
      }
    
      @LazyInit private transient @Nullable Map<K, Long> asMap;
    
      /** Returns a live, read-only view of the map backing this {@code AtomicLongMap}. */
      public Map<K, Long> asMap() {
        Map<K, Long> result = asMap;
        return (result == null) ? asMap = createAsMap() : result;
      }
    
      private Map<K, Long> createAsMap() {
        return Collections.unmodifiableMap(map);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 11.7K bytes
    - Viewed (0)
Back to top