Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 141 for asMap (0.03 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java

        new EqualsTester()
            .addEqualityGroup(multimap())
            .addEqualityGroup(getSubjectGenerator().create())
            .testEquals();
      }
    
      public void testHashCodeMatchesAsMap() {
        assertEquals(multimap().asMap().hashCode(), multimap().hashCode());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

      void register(Object listener) {
        Multimap<Class<?>, Subscriber> listenerMethods = findAllSubscribers(listener);
    
        for (Entry<Class<?>, Collection<Subscriber>> entry : listenerMethods.asMap().entrySet()) {
          Class<?> eventType = entry.getKey();
          Collection<Subscriber> eventMethodsInListener = entry.getValue();
    
          CopyOnWriteArraySet<Subscriber> eventSubscribers = subscribers.get(eventType);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

            multimap.putAll("bar", asList(10, 11));
            multimap.putAll("cat", asList(12, 13, 14));
            return multimap.asMap().entrySet().iterator();
          }
    
          @Override
          protected void verify(List<Entry<String, Collection<Integer>>> elements) {
            assertEquals(newHashSet(elements), multimap.asMap().entrySet());
          }
        }.test();
      }
    
      public void testEquals() {
        new EqualsTester()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapTestSuiteBuilder.java

        } else {
          return ListTestSuiteBuilder.using(
                  new MultimapAsMapGetGenerator<K, V>(parentBuilder.getSubjectGenerator()))
              .withFeatures(features)
              .named(parentBuilder.getName() + ".asMap[].get[key]")
              .suppressing(parentBuilder.getSuppressedTests())
              .createTestSuite();
        }
      }
    
      @Override
      Set<Feature<?>> computeMultimapGetFeatures(Set<Feature<?>> multimapFeatures) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapTestSuiteBuilder.java

        } else {
          return SetTestSuiteBuilder.using(
                  new MultimapAsMapGetGenerator<K, V>(parentBuilder.getSubjectGenerator()))
              .withFeatures(features)
              .named(parentBuilder.getName() + ".asMap[].get[key]")
              .suppressing(parentBuilder.getSuppressedTests())
              .createTestSuite();
        }
      }
    
      @Override
      TestSuite computeEntriesTestSuite(
          FeatureSpecificTestSuiteBuilder<
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/AbstractValueGraph.java

            + ", nodes: "
            + nodes()
            + ", edges: "
            + edgeValueMap(this);
      }
    
      private static <N, V> Map<EndpointPair<N>, V> edgeValueMap(final ValueGraph<N, V> graph) {
        return Maps.asMap(
            graph.edges(),
            edge ->
                // requireNonNull is safe because the endpoint pair comes from the graph.
                requireNonNull(graph.edgeValueOrDefault(edge.nodeU(), edge.nodeV(), null)));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 13:59:28 UTC 2023
    - 4.3K bytes
    - Viewed (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];
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/ListMultimapTestSuiteBuilder.java

        } else {
          return ListTestSuiteBuilder.using(
                  new MultimapAsMapGetGenerator<K, V>(parentBuilder.getSubjectGenerator()))
              .withFeatures(features)
              .named(parentBuilder.getName() + ".asMap[].get[key]")
              .suppressing(parentBuilder.getSuppressedTests())
              .createTestSuite();
        }
      }
    
      @Override
      Set<Feature<?>> computeMultimapGetFeatures(Set<Feature<?>> multimapFeatures) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. android/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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  10. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top