- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 10 for TreeMultiset (0.06 seconds)
-
android/guava/src/com/google/common/collect/TreeMultiset.java
*/ @SuppressWarnings("unchecked") public static <E extends @Nullable Object> TreeMultiset<E> create( @Nullable 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 theCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 34K bytes - Click Count (0) -
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); assertThat(ms.toString()).isEqualTo("[a x 3, b x 2, c]"); } public void testElementSetSortedSetMethods() { TreeMultiset<String> ms = TreeMultiset.create(); ms.add("c", 1); ms.add("a", 3); ms.add("b", 2);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 13.1K bytes - Click Count (0) -
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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 28.1K bytes - Click Count (0) -
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;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 17.4K bytes - Click Count (0) -
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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 28.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Multiset.java
* * <h3>Implementations</h3> * * <ul> * <li>{@link ImmutableMultiset} * <li>{@link ImmutableSortedMultiset} * <li>{@link HashMultiset} * <li>{@link LinkedHashMultiset} * <li>{@link TreeMultiset} * <li>{@link EnumMultiset} * <li>{@link ConcurrentHashMultiset} * </ul> * * <p>If your values may be zero, negative, or outside the range of an int, you may wish to use
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 19.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/Multiset.java
* * <h3>Implementations</h3> * * <ul> * <li>{@link ImmutableMultiset} * <li>{@link ImmutableSortedMultiset} * <li>{@link HashMultiset} * <li>{@link LinkedHashMultiset} * <li>{@link TreeMultiset} * <li>{@link EnumMultiset} * <li>{@link ConcurrentHashMultiset} * </ul> * * <p>If your values may be zero, negative, or outside the range of an int, you may wish to use
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 20.9K bytes - Click Count (0) -
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;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 18.6K bytes - Click Count (0) -
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();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 20.8K bytes - Click Count (0) -
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();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 24.9K bytes - Click Count (0)