Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 121 for asMap (0.01 sec)

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

        initMultimapWithNullValue();
        testToStringMatchesAsMap();
      }
    
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      public void testToStringMatchesAsMap() {
        assertEquals(multimap().asMap().toString(), multimap().toString());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java

        initMultimapWithNullValue();
        testToStringMatchesAsMap();
      }
    
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      public void testToStringMatchesAsMap() {
        assertEquals(multimap().asMap().toString(), multimap().toString());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMultimap.java

        }
    
        /**
         * Stores another multimap's entries in the built multimap. The generated multimap's key and
         * value orderings correspond to the iteration ordering of the {@code multimap.asMap()} view,
         * with new keys and values following any existing keys and values.
         *
         * @throws NullPointerException if any key or value in {@code multimap} is null. The builder is
         *     left in an invalid state.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 28.6K bytes
    - Viewed (0)
  4. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapTestSuiteBuilder.java

                  new SetMultimapTestSuiteBuilder.MultimapAsMapGetGenerator<K, V>(
                      parentBuilder.getSubjectGenerator()))
              .withFeatures(features)
              .named(parentBuilder.getName() + ".asMap[].get[key]")
              .suppressing(parentBuilder.getSuppressedTests())
              .createTestSuite();
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. 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(new HashSet<>(elements), multimap.asMap().entrySet());
          }
        }.test();
      }
    
      public void testEquals() {
        new EqualsTester()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18K bytes
    - Viewed (0)
  7. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableEnumMapTest.java

                .createTestSuite());
        suite.addTestSuite(ImmutableEnumMapTest.class);
        return suite;
      }
    
      public void testIteratesOnce() {
        Map<AnEnum, AnEnum> map =
            Maps.asMap(
                ImmutableSet.of(AnEnum.A),
                new Function<AnEnum, AnEnum>() {
                  boolean used = false;
    
                  @Override
                  public AnEnum apply(AnEnum ae) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/AbstractValueGraph.java

            + ", nodes: "
            + nodes()
            + ", edges: "
            + edgeValueMap(this);
      }
    
      private static <N, V> Map<EndpointPair<N>, V> edgeValueMap(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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java

    import com.google.common.collect.testing.MapInterfaceTest;
    import java.util.Collection;
    import java.util.Map;
    import org.jspecify.annotations.NullMarked;
    
    /**
     * Test {@link Multimap#asMap()} for an arbitrary multimap with {@link MapInterfaceTest}.
     *
     * @author George van den Driessche
     * @author Jared Levy
     */
    @GwtCompatible
    @NullMarked
    public abstract class AbstractMultimapAsMapImplementsMapTest
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 14:47:20 UTC 2025
    - 3K bytes
    - Viewed (0)
Back to top