Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 132 for AsMap (0.01 sec)

  1. guava/src/com/google/common/cache/CacheStats.java

     *   <li>No stats are modified when a cache entry is invalidated or manually removed.
     *   <li>No stats are modified by operations invoked on the {@linkplain Cache#asMap asMap} view of
     *       the cache.
     * </ul>
     *
     * <p>A lookup is specifically defined as an invocation of one of the methods {@link
     * LoadingCache#get(Object)}, {@link LoadingCache#getUnchecked(Object)}, {@link Cache#get(Object,
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        BiPredicate<ImmutableListMultimap<?, ?>, ImmutableListMultimap<?, ?>> equivalence =
            Equivalence.equals()
                .onResultOf((ImmutableListMultimap<?, ?> mm) -> mm.asMap().entrySet().asList())
                .and(Equivalence.equals());
        CollectorTester.of(collector, equivalence)
            .expectCollects(ImmutableListMultimap.of())
            .expectCollects(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

        return graph.isDirected()
            ? DirectedGraphConnections.ofImmutable(
                node, graph.incidentEdges(node), successorNodeToValueFn)
            : UndirectedGraphConnections.ofImmutable(
                Maps.asMap(graph.adjacentNodes(node), successorNodeToValueFn));
      }
    
      /**
       * A builder for creating {@link ImmutableValueGraph} instances, especially {@code static final}
       * graphs. Example:
       *
       * {@snippet :
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Synchronized.java

            }
            return entries;
          }
        }
    
        @Override
        public Map<K, Collection<V>> asMap() {
          synchronized (mutex) {
            if (asMap == null) {
              asMap = new SynchronizedAsMap<>(delegate().asMap(), mutex);
            }
            return asMap;
          }
        }
    
        @Override
        public Multiset<K> keys() {
          synchronized (mutex) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Aug 08 15:11:10 UTC 2025
    - 53K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Synchronized.java

            delegate().forEach(action);
          }
        }
    
        @Override
        public Map<K, Collection<V>> asMap() {
          synchronized (mutex) {
            if (asMap == null) {
              asMap = new SynchronizedAsMap<>(delegate().asMap(), mutex);
            }
            return asMap;
          }
        }
    
        @Override
        public Multiset<K> keys() {
          synchronized (mutex) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Aug 08 15:11:10 UTC 2025
    - 56.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // add a non-serializable entry
        one.getUnchecked(new Object());
        assertThat(one.size()).isEqualTo(1);
        assertThat(one.asMap().isEmpty()).isFalse();
        LocalLoadingCache<Object, Object> two = SerializableTester.reserialize(one);
        assertThat(two.size()).isEqualTo(0);
        assertThat(two.asMap().isEmpty()).isTrue();
    
        LocalCache<Object, Object> localCacheOne = one.localCache;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 117.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

            builder.build(CacheLoader.from(Suppliers.ofInstance(value)));
        assertThat(cache.getUnchecked(key)).isSameInstanceAs(value);
        assertThat(cache.size()).isEqualTo(0);
        assertThat(cache.asMap().containsKey(key)).isFalse();
      }
    
      public void testCacheBuilderFrom_string() {
        CacheBuilder<?, ?> fromString =
            CacheBuilder.from(
                "initialCapacity=10,maximumSize=20,concurrencyLevel=30,"
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // add a non-serializable entry
        one.getUnchecked(new Object());
        assertThat(one.size()).isEqualTo(1);
        assertThat(one.asMap().isEmpty()).isFalse();
        LocalLoadingCache<Object, Object> two = SerializableTester.reserialize(one);
        assertThat(two.size()).isEqualTo(0);
        assertThat(two.asMap().isEmpty()).isTrue();
    
        LocalCache<Object, Object> localCacheOne = one.localCache;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 115.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/ImmutableValueGraph.java

        return graph.isDirected()
            ? DirectedGraphConnections.ofImmutable(
                node, graph.incidentEdges(node), successorNodeToValueFn)
            : UndirectedGraphConnections.ofImmutable(
                Maps.asMap(graph.adjacentNodes(node), successorNodeToValueFn));
      }
    
      /**
       * A builder for creating {@link ImmutableValueGraph} instances, especially {@code static final}
       * graphs. Example:
       *
       * {@snippet :
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/AbstractNetwork.java

            () -> String.format(NODE_PAIR_REMOVED_FROM_GRAPH, nodeU, nodeV));
      }
    
      private static <N, E> Map<E, EndpointPair<N>> edgeIncidentNodesMap(Network<N, E> network) {
        return Maps.asMap(network.edges(), network::incidentNodes);
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 10K bytes
    - Viewed (0)
Back to top