Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for unmodifiableSortedSetMultimap (0.23 sec)

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

        tree.put(1.0, 2.0);
        tree.put(2.0, 3.0);
        tree.put(3.0, 4.0);
        tree.put(4.0, 5.0);
    
        SortedSetMultimap<Double, Double> sorted = Multimaps.unmodifiableSortedSetMultimap(tree);
        TreeMultimap<Double, Double> copyFromSorted = TreeMultimap.create(sorted);
        assertEquals(tree, copyFromSorted);
        assertSame(Ordering.natural(), copyFromSorted.keyComparator());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multimaps.java

       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          SortedSetMultimap<K, V> unmodifiableSortedSetMultimap(SortedSetMultimap<K, V> delegate) {
        if (delegate instanceof UnmodifiableSortedSetMultimap) {
          return delegate;
        }
        return new UnmodifiableSortedSetMultimap<>(delegate);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(SetMultimap.class, ImmutableSetMultimap.of())
              .put(ImmutableSetMultimap.class, ImmutableSetMultimap.of())
              .put(
                  SortedSetMultimap.class,
                  Multimaps.unmodifiableSortedSetMultimap(TreeMultimap.create()))
              .put(Multiset.class, ImmutableMultiset.of())
              .put(ImmutableMultiset.class, ImmutableMultiset.of())
              .put(SortedMultiset.class, ImmutableSortedMultiset.of())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(SetMultimap.class, ImmutableSetMultimap.of())
              .put(ImmutableSetMultimap.class, ImmutableSetMultimap.of())
              .put(
                  SortedSetMultimap.class,
                  Multimaps.unmodifiableSortedSetMultimap(TreeMultimap.create()))
              .put(Multiset.class, ImmutableMultiset.of())
              .put(ImmutableMultiset.class, ImmutableMultiset.of())
              .put(SortedMultiset.class, ImmutableSortedMultiset.of())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

          assertEquals(8, multimap.size());
        }
    
        Multimap<@Nullable String, @Nullable Integer> unmodifiable;
        if (multimap instanceof SortedSetMultimap) {
          unmodifiable =
              Multimaps.unmodifiableSortedSetMultimap(
                  (SortedSetMultimap<@Nullable String, @Nullable Integer>) multimap);
        } else if (multimap instanceof SetMultimap) {
          unmodifiable =
              Multimaps.unmodifiableSetMultimap(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
Back to top