Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for ImmutableSetMultimap (0.14 sec)

  1. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableSetMultimap<K, V> of() {
        return (ImmutableSetMultimap<K, V>) EmptyImmutableSetMultimap.INSTANCE;
      }
    
      /** Returns an immutable multimap containing a single entry. */
      public static <K, V> ImmutableSetMultimap<K, V> of(K k1, V v1) {
        ImmutableSetMultimap.Builder<K, V> builder = ImmutableSetMultimap.builder();
        builder.put(k1, v1);
        return builder.build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSetMultimap.java

      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableSetMultimap<K, V> of() {
        return (ImmutableSetMultimap<K, V>) EmptyImmutableSetMultimap.INSTANCE;
      }
    
      /** Returns an immutable multimap containing a single entry. */
      public static <K, V> ImmutableSetMultimap<K, V> of(K k1, V v1) {
        ImmutableSetMultimap.Builder<K, V> builder = ImmutableSetMultimap.builder();
        builder.put(k1, v1);
        return builder.build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertEquals(ImmutableSetMultimap.of(1, "one"), ImmutableSetMultimap.of("one", 1).inverse());
        assertEquals(
            ImmutableSetMultimap.of(1, "one", 2, "two"),
            ImmutableSetMultimap.of("one", 1, "two", 2).inverse());
        assertEquals(
            ImmutableSetMultimap.of('o', "of", 'f', "of", 't', "to", 'o', "to"),
            ImmutableSetMultimap.of("of", 'o', "of", 'f', "to", 't', "to", 'o').inverse());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                      @Override
                      SetMultimap<String, Integer> filter(SetMultimap<String, Integer> multimap) {
                        ImmutableSetMultimap<String, Integer> badEntries =
                            ImmutableSetMultimap.of("foo", 314, "one", 159, "two", 265, "bar", 358);
                        multimap.putAll(badEntries);
                        return Multimaps.filterEntries(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(ListMultimap.class, ImmutableListMultimap.of())
              .put(ImmutableListMultimap.class, ImmutableListMultimap.of())
              .put(SetMultimap.class, ImmutableSetMultimap.of())
              .put(ImmutableSetMultimap.class, ImmutableSetMultimap.of())
              .put(
                  SortedSetMultimap.class,
                  Multimaps.unmodifiableSortedSetMultimap(TreeMultimap.create()))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CollectCollectors.java

            ImmutableSetMultimap.Builder::combine,
            ImmutableSetMultimap.Builder::build);
      }
    
      static <T extends @Nullable Object, K, V>
          Collector<T, ?, ImmutableSetMultimap<K, V>> flatteningToImmutableSetMultimap(
              Function<? super T, ? extends K> keyFunction,
              Function<? super T, ? extends Stream<? extends V>> valuesFunction) {
        checkNotNull(keyFunction);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(ListMultimap.class, ImmutableListMultimap.of())
              .put(ImmutableListMultimap.class, ImmutableListMultimap.of())
              .put(SetMultimap.class, ImmutableSetMultimap.of())
              .put(ImmutableSetMultimap.class, ImmutableSetMultimap.of())
              .put(
                  SortedSetMultimap.class,
                  Multimaps.unmodifiableSortedSetMultimap(TreeMultimap.create()))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                      @Override
                      SetMultimap<String, Integer> filter(SetMultimap<String, Integer> multimap) {
                        ImmutableSetMultimap<String, Integer> badEntries =
                            ImmutableSetMultimap.of("foo", 314, "one", 159, "two", 265, "bar", 358);
                        multimap.putAll(badEntries);
                        return Multimaps.filterEntries(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        ImmutableSetMultimap<String, Integer> expected =
            ImmutableSetMultimap.of("one", 1, "won", 1, "two", 2, "too", 2, "three", 3);
        assertEquals(expected, map.asMultimap());
      }
    
      public void testAsMultimapWhenEmpty() {
        ImmutableMap<String, Integer> map = ImmutableMap.of();
        ImmutableSetMultimap<String, Integer> expected = ImmutableSetMultimap.of();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

            }
          } finally {
            monitor.leave();
          }
        }
    
        ImmutableSetMultimap<State, Service> servicesByState() {
          ImmutableSetMultimap.Builder<State, Service> builder = ImmutableSetMultimap.builder();
          monitor.enter();
          try {
            for (Entry<State, Service> entry : servicesByState.entries()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top