Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for ImmutableListMultimap (0.18 sec)

  1. guava/src/com/google/common/collect/ImmutableListMultimap.java

      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableListMultimap<K, V> of() {
        return (ImmutableListMultimap<K, V>) EmptyImmutableListMultimap.INSTANCE;
      }
    
      /** Returns an immutable multimap containing a single entry. */
      public static <K, V> ImmutableListMultimap<K, V> of(K k1, V v1) {
        ImmutableListMultimap.Builder<K, V> builder = ImmutableListMultimap.builder();
        builder.put(k1, v1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 20:20:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableListMultimap<K, V> of() {
        return (ImmutableListMultimap<K, V>) EmptyImmutableListMultimap.INSTANCE;
      }
    
      /** Returns an immutable multimap containing a single entry. */
      public static <K, V> ImmutableListMultimap<K, V> of(K k1, V v1) {
        ImmutableListMultimap.Builder<K, V> builder = ImmutableListMultimap.builder();
        builder.put(k1, v1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

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

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

            setMultimap,
            setMultimapCopy);
    
        ImmutableListMultimap<String, String> listMultimap = ImmutableListMultimap.of("k1", "v1");
        ImmutableMultimap<String, String> listMultimapCopy = ImmutableMultimap.copyOf(listMultimap);
        assertSame(
            "copyOf(ImmutableListMultimap) should not create a new instance",
            listMultimap,
            listMultimapCopy);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

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

            ImmutableListMultimap.Builder::combine,
            ImmutableListMultimap.Builder::build);
      }
    
      static <T extends @Nullable Object, K, V>
          Collector<T, ?, ImmutableListMultimap<K, V>> flatteningToImmutableListMultimap(
              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)
  8. android/guava/src/com/google/common/collect/ImmutableMultimap.java

       */
      public static <K, V> ImmutableMultimap<K, V> of() {
        return ImmutableListMultimap.of();
      }
    
      /** Returns an immutable multimap containing a single entry. */
      public static <K, V> ImmutableMultimap<K, V> of(K k1, V v1) {
        return ImmutableListMultimap.of(k1, v1);
      }
    
      /** Returns an immutable multimap containing the given entries, in order. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ForwardingListMultimapTest.java

                    return wrap((ListMultimap<?, ?>) delegate);
                  }
                });
      }
    
      public void testEquals() {
        ListMultimap<Integer, String> map1 = ImmutableListMultimap.of(1, "one");
        ListMultimap<Integer, String> map2 = ImmutableListMultimap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ForwardingListMultimapTest.java

                    return wrap((ListMultimap<?, ?>) delegate);
                  }
                });
      }
    
      public void testEquals() {
        ListMultimap<Integer, String> map1 = ImmutableListMultimap.of(1, "one");
        ListMultimap<Integer, String> map2 = ImmutableListMultimap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top