Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 161 - 170 of 174 for AsMap (0.02 seconds)

  1. 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);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 10K bytes
    - Click Count (0)
  2. 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;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
  3. 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;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/helper/CrawlerStatsHelper.java

         */
        @PreDestroy
        public void destroy() {
            if (logger.isDebugEnabled()) {
                logger.debug("cache stats: {}", statsCache.stats());
            }
            statsCache.asMap().entrySet().stream().forEach(e -> {
                final StatsObject data = e.getValue();
                final Long begin = data.remove(BEGIN_KEY);
                if (begin != null) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 17.4K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        LenientSerializableTester.reserializeAndAssertLenient(multimap.keySet());
        LenientSerializableTester.reserializeAndAssertLenient(multimap.keys());
        SerializableTester.reserializeAndAssert(multimap.asMap());
        Collection<Integer> valuesCopy = SerializableTester.reserialize(multimap.values());
        assertEquals(HashMultiset.create(multimap.values()), HashMultiset.create(valuesCopy));
      }
    
      @J2ktIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 24.2K bytes
    - Click Count (0)
  6. guava/src/com/google/common/base/Joiner.java

       *       {@code MapJoiner} method that accepts entries as input, and receive output of the form
       *       {@code key1=A&key1=B&key2=C}.
       *   <li>To output a single entry for each key, pass {@code multimap.asMap()} to a {@code
       *       MapJoiner} method that accepts a map as input, and receive output of the form {@code
       *       key1=[A, B]&key2=C}.
       * </ul>
       *
       * @since 2.0
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 15:16:19 GMT 2025
    - 21K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/base/Joiner.java

       *       {@code MapJoiner} method that accepts entries as input, and receive output of the form
       *       {@code key1=A&key1=B&key2=C}.
       *   <li>To output a single entry for each key, pass {@code multimap.asMap()} to a {@code
       *       MapJoiner} method that accepts a map as input, and receive output of the form {@code
       *       key1=[A, B]&key2=C}.
       * </ul>
       *
       * @since 2.0
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  8. 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,"
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

                return getDummyValue(TypeToken.of(interfaceType).method(method).getReturnType());
              }
            };
        for (Entry<Class<?>, Collection<Object>> entry : distinctValues.asMap().entrySet()) {
          generator.addSampleInstances((Class) entry.getKey(), entry.getValue());
        }
        return generator;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/cache/LocalCache.java

          localCache.clear();
        }
    
        @Override
        public long size() {
          return localCache.longSize();
        }
    
        @Override
        public ConcurrentMap<K, V> asMap() {
          return localCache;
        }
    
        @Override
        public CacheStats stats() {
          SimpleStatsCounter aggregator = new SimpleStatsCounter();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
Back to Top