Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for TreeMultiset (0.09 sec)

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

       */
      @SuppressWarnings("unchecked")
      public static <E extends @Nullable Object> TreeMultiset<E> create(
          @CheckForNull Comparator<? super E> comparator) {
        return (comparator == null)
            ? new TreeMultiset<E>((Comparator) Ordering.natural())
            : new TreeMultiset<E>(comparator);
      }
    
      /**
       * Creates an empty multiset containing the given initial elements, sorted according to the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/TreeMultiset.java

       */
      @SuppressWarnings("unchecked")
      public static <E extends @Nullable Object> TreeMultiset<E> create(
          @CheckForNull Comparator<? super E> comparator) {
        return (comparator == null)
            ? new TreeMultiset<E>((Comparator) Ordering.natural())
            : new TreeMultiset<E>(comparator);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

      }
    
      public void testToString() {
        Multiset<String> ms = TreeMultiset.create();
        ms.add("a", 3);
        ms.add("c", 1);
        ms.add("b", 2);
    
        assertEquals("[a x 3, b x 2, c]", ms.toString());
      }
    
      public void testElementSetSortedSetMethods() {
        TreeMultiset<String> ms = TreeMultiset.create();
        ms.add("c", 1);
        ms.add("a", 3);
        ms.add("b", 2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/TreeMultisetTest.java

      }
    
      public void testToString() {
        Multiset<String> ms = TreeMultiset.create();
        ms.add("a", 3);
        ms.add("c", 1);
        ms.add("b", 2);
    
        assertEquals("[a x 3, b x 2, c]", ms.toString());
      }
    
      public void testElementSetSortedSetMethods() {
        TreeMultiset<String> ms = TreeMultiset.create();
        ms.add("c", 1);
        ms.add("a", 3);
        ms.add("b", 2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. android/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.1K bytes
    - Viewed (0)
  6. android/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
    - 20.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top