- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 208 for multisets (0.06 seconds)
-
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( Multiset<? extends E> multiset1, Multiset<? extends E> multiset2) { checkNotNull(multiset1); checkNotNull(multiset2); return new ViewMultiset<E>() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 41.2K bytes - Click Count (0) -
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( Multiset<? extends E> multiset1, Multiset<? extends E> multiset2) { checkNotNull(multiset1); checkNotNull(multiset2); return new ViewMultiset<E>() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 41.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetForEachEntryTester.java
assertEquals(expected, actual); } public void testForEachEntryDuplicates() { initThreeCopies(); List<Entry<E>> expected = singletonList(Multisets.immutableEntry(e0(), 3)); List<Entry<E>> actual = new ArrayList<>(); getMultiset() .forEachEntry((element, count) -> actual.add(Multisets.immutableEntry(element, count)));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 3.2K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java
} public void testCount_wrongType() { assertEquals( "multiset.count(wrongType) didn't return 0", 0, getMultiset().count(WrongType.VALUE)); } /** * Returns {@link Method} instances for the read tests that assume multisets support duplicates so * that the test of {@code Multisets.forSet()} can suppress them. */ @J2ktIncompatible @GwtIncompatible // reflection
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 3.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java
} public void testCount_wrongType() { assertEquals( "multiset.count(wrongType) didn't return 0", 0, getMultiset().count(WrongType.VALUE)); } /** * Returns {@link Method} instances for the read tests that assume multisets support duplicates so * that the test of {@code Multisets.forSet()} can suppress them. */ @J2ktIncompatible @GwtIncompatible // reflection
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 3.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/TestStringMultisetGenerator.java
import com.google.common.annotations.GwtCompatible; import com.google.common.collect.Multiset; import com.google.common.collect.testing.SampleElements; import com.google.common.collect.testing.SampleElements.Strings; import java.util.List; import org.jspecify.annotations.NullMarked; /** * Create multisets of strings for tests. * * @author Jared Levy */ @GwtCompatible @NullMarked
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 1.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractMultiset.java
* and if, for each element, the two multisets have the same count. */ @Override public final boolean equals(@Nullable Object object) { return Multisets.equalsImpl(this, object); } /** * {@inheritDoc} * * <p>This implementation returns the hash code of {@link Multiset#entrySet()}. */ @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 5.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableSortedMultiset.java
() -> TreeMultiset.create(comparator), (multiset, t) -> multiset.add(checkNotNull(elementFunction.apply(t)), countFunction.applyAsInt(t)), (multiset1, multiset2) -> { multiset1.addAll(multiset2); return multiset1; }, (Multiset<E> multiset) -> copyOfSortedEntries(comparator, multiset.entrySet())); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 29.5K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/collect/HashMultisetAddPresentBenchmark.java
private static final int ARRAY_SIZE = 0x10000; List<Multiset<Integer>> multisets = new ArrayList<>(0x10000); int[] queries = new int[ARRAY_SIZE]; @BeforeExperiment void setUp() { Random random = new Random(); multisets.clear(); for (int i = 0; i < ARRAY_SIZE; i++) { HashMultiset<Integer> multiset = HashMultiset.<Integer>create(); multisets.add(multiset); queries[i] = random.nextInt();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.7K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetElementSetTester.java
getMultiset().elementSet().clear(); assertEmpty(getMultiset()); } /** * Returns {@link Method} instances for the read tests that assume multisets support duplicates so * that the test of {@code Multisets.forSet()} can suppress them. */ @J2ktIncompatible @GwtIncompatible // reflection public static List<Method> getElementSetDuplicateInitializingMethods() { return asList(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 4.3K bytes - Click Count (0)