Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for ImmutableSetMultimap (0.25 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

      // TODO: test ImmutableMultimap builder and factory methods
    
      public void testCopyOf() {
        ImmutableSetMultimap<String, String> setMultimap = ImmutableSetMultimap.of("k1", "v1");
        ImmutableMultimap<String, String> setMultimapCopy = ImmutableMultimap.copyOf(setMultimap);
        assertSame(
            "copyOf(ImmutableSetMultimap) should not create a new instance",
            setMultimap,
            setMultimapCopy);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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.2K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

    import com.google.common.collect.ImmutableMultimap;
    import com.google.common.collect.ImmutableMultiset;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.ImmutableSetMultimap;
    import com.google.common.collect.ImmutableSortedMap;
    import com.google.common.collect.ImmutableSortedMultiset;
    import com.google.common.collect.ImmutableSortedSet;
    import com.google.common.collect.ImmutableTable;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 17.2K bytes
    - Viewed (0)
  7. android/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
    - 36.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        SetMultimap<String, Integer> unmod = Multimaps.unmodifiableSetMultimap(mod);
        assertNotSame(mod, unmod);
        assertSame(unmod, Multimaps.unmodifiableSetMultimap(unmod));
        ImmutableSetMultimap<String, Integer> immutable =
            ImmutableSetMultimap.of("a", 1, "b", 2, "a", 3);
        assertSame(immutable, Multimaps.unmodifiableSetMultimap(immutable));
        assertSame(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableMap.java

      @LazyInit @CheckForNull private transient ImmutableSetMultimap<K, V> multimapView;
    
      /**
       * Returns a multimap view of the map.
       *
       * @since 14.0
       */
      public ImmutableSetMultimap<K, V> asMultimap() {
        if (isEmpty()) {
          return ImmutableSetMultimap.of();
        }
        ImmutableSetMultimap<K, V> result = multimapView;
        return (result == null)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

    import com.google.common.collect.ImmutableMultimap;
    import com.google.common.collect.ImmutableMultiset;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.ImmutableSetMultimap;
    import com.google.common.collect.ImmutableSortedMap;
    import com.google.common.collect.ImmutableSortedMultiset;
    import com.google.common.collect.ImmutableSortedSet;
    import com.google.common.collect.ImmutableTable;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
Back to top