Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for TreeMultiset (0.12 sec)

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

       *
       * <p>Results are undefined if {@code multiset1} and {@code multiset2} are based on different
       * equivalence relations (as {@code HashMultiset} and {@code TreeMultiset} are).
       *
       * @since 14.0
       */
      public static <E extends @Nullable Object> Multiset<E> union(
          final Multiset<? extends E> multiset1, final Multiset<? extends E> multiset2) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Multisets.java

       *
       * <p>Results are undefined if {@code multiset1} and {@code multiset2} are based on different
       * equivalence relations (as {@code HashMultiset} and {@code TreeMultiset} are).
       *
       * @since 14.0
       */
      public static <E extends @Nullable Object> Multiset<E> union(
          final Multiset<? extends E> multiset1, final Multiset<? extends E> multiset2) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ForwardingSortedMultisetTest.java

                      @Override
                      protected Multiset<String> create(String[] elements) {
                        return new StandardImplForwardingSortedMultiset<>(
                            TreeMultiset.create(asList(elements)));
                      }
    
                      @Override
                      public List<String> order(List<String> insertionOrder) {
    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/test/com/google/common/testing/FreshValueGeneratorTest.java

    import com.google.common.collect.SetMultimap;
    import com.google.common.collect.SortedMultiset;
    import com.google.common.collect.Table;
    import com.google.common.collect.TreeBasedTable;
    import com.google.common.collect.TreeMultiset;
    import com.google.common.primitives.UnsignedInteger;
    import com.google.common.primitives.UnsignedLong;
    import com.google.common.reflect.TypeToken;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 17.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java

                        4))
            .expect(1.0, 1.0, 2.0, 3.0);
      }
    
      public void testMultisetsSpliterator() {
        Multiset<String> multiset = TreeMultiset.create();
        multiset.add("a", 3);
        multiset.add("b", 1);
        multiset.add("c", 2);
    
        List<String> actualValues = Lists.newArrayList();
        multiset.spliterator().forEachRemaining(actualValues::add);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        return generateTreeMultiset(freshElement);
      }
    
      @Generates
      static <E extends Comparable<E>> TreeMultiset<E> generateTreeMultiset(E freshElement) {
        TreeMultiset<E> multiset = TreeMultiset.create();
        multiset.add(freshElement);
        return multiset;
      }
    
      @Generates
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

        assertEquals(HashMultiset.create(asList("a", "b", "b", "b", "c")), multiset);
      }
    
      public void testBuilderAddAllTreeMultiset() {
        Multiset<String> a = TreeMultiset.create(asList("a", "b", "b"));
        Multiset<String> b = TreeMultiset.create(asList("c", "b"));
        ImmutableMultiset<String> multiset =
            new ImmutableMultiset.Builder<String>().addAll(a).addAll(b).build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ForwardingSortedMultisetTest.java

                      @Override
                      protected Multiset<String> create(String[] elements) {
                        return new StandardImplForwardingSortedMultiset<>(
                            TreeMultiset.create(asList(elements)));
                      }
    
                      @Override
                      public List<String> order(List<String> insertionOrder) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

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

    import com.google.common.collect.SetMultimap;
    import com.google.common.collect.SortedMultiset;
    import com.google.common.collect.Table;
    import com.google.common.collect.TreeBasedTable;
    import com.google.common.collect.TreeMultiset;
    import com.google.common.primitives.UnsignedInteger;
    import com.google.common.primitives.UnsignedLong;
    import com.google.common.reflect.TypeToken;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    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