- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for HashMultiset (0.2 sec)
-
guava/src/com/google/common/collect/HashMultiset.java
@ElementTypesAreNonnullByDefault public final class HashMultiset<E extends @Nullable Object> extends AbstractMapBasedMultiset<E> { /** Creates a new, empty {@code HashMultiset} using the default initial capacity. */ public static <E extends @Nullable Object> HashMultiset<E> create() { return new HashMultiset<>(); } /** * Creates a new, empty {@code HashMultiset} with the specified expected number of distinct * elements.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 3.4K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java
@Param({"0", "1", "16", "256", "4096", "65536"}) int size; LinkedHashMultiset<Object> linkedHashMultiset; HashMultiset<Object> hashMultiset; // TreeMultiset requires a Comparable element. TreeMultiset<Integer> treeMultiset; @BeforeExperiment void setUp() { hashMultiset = HashMultiset.create(size); linkedHashMultiset = LinkedHashMultiset.create(size); treeMultiset = TreeMultiset.create();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 2.7K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java
@Param({"0", "1", "16", "256", "4096", "65536"}) int size; LinkedHashMultiset<Object> linkedHashMultiset; HashMultiset<Object> hashMultiset; // TreeMultiset requires a Comparable element. TreeMultiset<Integer> treeMultiset; @BeforeExperiment void setUp() { hashMultiset = HashMultiset.create(size); linkedHashMultiset = LinkedHashMultiset.create(size); treeMultiset = TreeMultiset.create();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 2.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
Multiset<String> c = HashMultiset.create(); Multiset<String> multiset = ImmutableMultiset.copyOf(c); assertTrue(multiset.isEmpty()); } public void testCopyOf_multiset_oneElement() { Multiset<String> c = HashMultiset.create(asList("a")); Multiset<String> multiset = ImmutableMultiset.copyOf(c); assertEquals(HashMultiset.create(asList("a")), multiset); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 20.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
Multiset<String> c = HashMultiset.create(); Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); assertTrue(multiset.isEmpty()); } public void testCopyOf_multiset_oneElement() { Multiset<String> c = HashMultiset.create(asList("a")); Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); assertEquals(HashMultiset.create(asList("a")), 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) -
guava-tests/test/com/google/common/collect/HashMultisetTest.java
.named("HashMultiset") .createTestSuite()); suite.addTestSuite(HashMultisetTest.class); return suite; } private static TestStringMultisetGenerator hashMultisetGenerator() { return new TestStringMultisetGenerator() { @Override protected Multiset<String> create(String[] elements) { return HashMultiset.create(asList(elements)); } }; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 4.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java
} public void testEquals_yes() { assertTrue( "multiset doesn't equal a multiset with the same elements", getMultiset().equals(HashMultiset.create(getSampleElements()))); } public void testEquals_differentSize() { Multiset<E> other = HashMultiset.create(getSampleElements()); other.add(e0()); assertFalse("multiset equals a multiset with a different size", getMultiset().equals(other)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java
} public void testEquals_yes() { assertTrue( "multiset doesn't equal a multiset with the same elements", getMultiset().equals(HashMultiset.create(getSampleElements()))); } public void testEquals_differentSize() { Multiset<E> other = HashMultiset.create(getSampleElements()); other.add(e0()); assertFalse("multiset equals a multiset with a different size", getMultiset().equals(other)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
Multiset<String> c = HashMultiset.create(); Multiset<String> multiset = ImmutableMultiset.copyOf(c); assertTrue(multiset.isEmpty()); } public void testCopyOf_multiset_oneElement() { Multiset<String> c = HashMultiset.create(asList("a")); Multiset<String> multiset = ImmutableMultiset.copyOf(c); assertEquals(HashMultiset.create(asList("a")), multiset); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 24.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/HashMultisetTest.java
.named("HashMultiset") .createTestSuite()); suite.addTestSuite(HashMultisetTest.class); return suite; } private static TestStringMultisetGenerator hashMultisetGenerator() { return new TestStringMultisetGenerator() { @Override protected Multiset<String> create(String[] elements) { return HashMultiset.create(asList(elements)); } }; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 4.4K bytes - Viewed (0)