- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 208 for multisets (0.55 seconds)
-
guava/src/com/google/common/collect/Count.java
package com.google.common.collect; import com.google.common.annotations.GwtCompatible; import java.io.Serializable; import org.jspecify.annotations.Nullable; /** * A mutable value of type {@code int}, for multisets to use in tracking counts of values. * * @author Louis Wasserman */ @GwtCompatible final class Count implements Serializable { private int value; Count(int value) { this.value = value; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.6K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/UnmodifiableSortedMultiset.java
package com.google.common.collect; import com.google.common.annotations.GwtIncompatible; import com.google.common.collect.Multisets.UnmodifiableMultiset; import java.util.Collections; import java.util.Comparator; import java.util.SortedSet; import org.jspecify.annotations.Nullable; /** * Implementation of {@link Multisets#unmodifiableSortedMultiset(SortedMultiset)} for GWT. * * @author Louis Wasserman */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 3.2K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/TestMultisetGenerator.java
package com.google.common.collect.testing.google; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.Multiset; import com.google.common.collect.testing.TestCollectionGenerator; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Creates multisets, containing sample elements, to be tested. * * @author Jared Levy */ @GwtCompatible @NullMarked
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java
import com.google.common.annotations.J2ktIncompatible; import com.google.common.collect.Multisets.UnmodifiableMultiset; import com.google.errorprone.annotations.concurrent.LazyInit; import java.util.Comparator; import java.util.NavigableSet; import org.jspecify.annotations.Nullable; /** * Implementation of {@link Multisets#unmodifiableSortedMultiset(SortedMultiset)}, split out intoCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 4K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java
treeMultiset = TreeMultiset.create(); Random random = new Random(); int sizeRemaining = size; // TODO(kevinb): generate better test contents for multisets while (sizeRemaining > 0) { // The JVM will return interned values for small ints. Integer value = random.nextInt(1000) + 128; int count = min(random.nextInt(10) + 1, sizeRemaining);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableMultiset.java
@J2ktIncompatible private static final class EntrySetSerializedForm<E> implements Serializable { final ImmutableMultiset<E> multiset; EntrySetSerializedForm(ImmutableMultiset<E> multiset) { this.multiset = multiset; } Object readResolve() { return multiset.entrySet(); } } @GwtIncompatible @J2ktIncompatible @Override abstract Object writeReplace();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 22.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java
return Collector.of( () -> TreeMultiset.create(comparator), (multiset, t) -> mapAndAdd(t, multiset, elementFunction, countFunction), (multiset1, multiset2) -> { multiset1.addAll(multiset2); return multiset1; }, (Multiset<E> multiset) -> copyOfSortedEntries(comparator, multiset.entrySet())); } @IgnoreJRERequirement // helper for toImmutableSortedMultiset
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 35.2K bytes - Click Count (0) -
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-tests/test/com/google/common/collect/MultisetsCollectionTest.java
Multiset<String> multiset2 = LinkedHashMultiset.create(); multiset1.add("equalIn1"); multiset1.add("fewerIn1"); multiset2.add("equalIn1"); multiset2.add("fewerIn1", 3); multiset2.add("onlyIn2", 2); for (int i = 0; i < elements.length; i++) { // add 1 more copy of each element to multiset1 than multiset2
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 9.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java
import static java.util.Collections.nCopies; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.Multiset.Entry; import junit.framework.TestCase; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Tests for {@link Multisets#immutableEntry}. * * @author Mike Bostock */ @GwtCompatible @NullMarkedCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 2.9K bytes - Click Count (0)