Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for unmodifiableSetMultimap (0.51 sec)

  1. 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)
  2. android/guava/src/com/google/common/collect/Multimaps.java

       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          SetMultimap<K, V> unmodifiableSetMultimap(SetMultimap<K, V> delegate) {
        if (delegate instanceof UnmodifiableSetMultimap || delegate instanceof ImmutableSetMultimap) {
          return delegate;
        }
        return new UnmodifiableSetMultimap<>(delegate);
      }
    
      /**
       * Simply returns its argument.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
Back to top