Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for ImmutableSortedMultiset (0.14 sec)

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

       *
       * <p>Note that if {@code s} is a {@code Multiset<String>}, then {@code
       * ImmutableSortedMultiset.copyOf(s)} returns an {@code ImmutableSortedMultiset<String>}
       * containing each of the strings in {@code s}, while {@code ImmutableSortedMultiset.of(s)}
       * returns an {@code ImmutableSortedMultiset<Multiset<String>>} containing one element (the given
       * multiset itself).
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        Collection<String> c = ImmutableSortedMultiset.of("a");
        assertSame(c, ImmutableSortedMultiset.copyOf(c));
      }
    
      public void testCopyOf_shortcut_immutableMultiset() {
        Collection<String> c = ImmutableSortedMultiset.of("a", "b", "c");
        assertSame(c, ImmutableSortedMultiset.copyOf(c));
      }
    
      public void testForEachEntry() {
        ImmutableSortedMultiset<String> multiset =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ForwardingSortedMultisetTest.java

                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        SortedMultiset<String> set1 = ImmutableSortedMultiset.of("one");
        SortedMultiset<String> set2 = ImmutableSortedMultiset.of("two");
        new EqualsTester()
            .addEqualityGroup(set1, wrap(set1), wrap(set1))
            .addEqualityGroup(set2, wrap(set2))
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Multiset.class, ImmutableMultiset.of())
              .put(ImmutableMultiset.class, ImmutableMultiset.of())
              .put(SortedMultiset.class, ImmutableSortedMultiset.of())
              .put(ImmutableSortedMultiset.class, ImmutableSortedMultiset.of())
              .put(BiMap.class, ImmutableBiMap.of())
              .put(ImmutableBiMap.class, ImmutableBiMap.of())
              .put(Table.class, ImmutableTable.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. guava-tests/test/com/google/common/collect/ForwardingSortedMultisetTest.java

                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        SortedMultiset<String> set1 = ImmutableSortedMultiset.of("one");
        SortedMultiset<String> set2 = ImmutableSortedMultiset.of("two");
        new EqualsTester()
            .addEqualityGroup(set1, wrap(set1), wrap(set1))
            .addEqualityGroup(set2, wrap(set2))
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Multiset.class, ImmutableMultiset.of())
              .put(ImmutableMultiset.class, ImmutableMultiset.of())
              .put(SortedMultiset.class, ImmutableSortedMultiset.of())
              .put(ImmutableSortedMultiset.class, ImmutableSortedMultiset.of())
              .put(BiMap.class, ImmutableBiMap.of())
              .put(ImmutableBiMap.class, ImmutableBiMap.of())
              .put(Table.class, ImmutableTable.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)
  7. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          }
        },
        ImmutableSortedMultisetImpl {
          @Override
          public <E extends Comparable<E>> SortedMultiset<E> create(Collection<E> contents) {
            return ImmutableSortedMultiset.copyOf(contents);
          }
        };
      }
    
      enum QueueImpl implements CollectionsImplEnum {
        MinMaxPriorityQueueImpl {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        multiset.add(freshElement);
        return multiset;
      }
    
      @Generates
      static <E extends Comparable<E>> ImmutableSortedMultiset<E> generateImmutableSortedMultiset(
          E freshElement) {
        return ImmutableSortedMultiset.of(freshElement);
      }
    
      @Generates
      static <K, V> Map<K, V> generateMap(@Nullable K key, @Nullable V value) {
        return generateHashdMap(key, value);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        multiset.add(freshElement);
        return multiset;
      }
    
      @Generates
      static <E extends Comparable<E>> ImmutableSortedMultiset<E> generateImmutableSortedMultiset(
          E freshElement) {
        return ImmutableSortedMultiset.of(freshElement);
      }
    
      @Generates
      static <K, V> Map<K, V> generateMap(@Nullable K key, @Nullable V value) {
        return generateHashdMap(key, value);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

      }
    
      public void testImmutableSortedSet() {
        doHasAllFauxveridesTest(ImmutableSortedSet.class, ImmutableSet.class);
      }
    
      public void testImmutableSortedMultiset() {
        doHasAllFauxveridesTest(ImmutableSortedMultiset.class, ImmutableMultiset.class);
      }
    
      /*
       * Demonstrate that ClassCastException is possible when calling
       * ImmutableSorted{Set,Map}.copyOf(), whose type parameters we are unable to
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top