- Sort Score
- Num 10 results
- Language All
Results 1 - 9 of 9 for multisets (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava/src/com/google/common/collect/TreeMultiset.java
} /** * Creates a new, empty multiset, sorted according to the specified comparator. All elements * inserted into the multiset must be <i>mutually comparable</i> by the specified comparator: * {@code comparator.compare(e1, e2)} must not throw a {@code ClassCastException} for any elements * {@code e1} and {@code e2} in the multiset. If the user attempts to add an element to the
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 34.3K bytes - Click Count (0) -
guava/src/com/google/common/collect/LinkedHashMultiset.java
* * @param elements the elements that the multiset should contain */ public static <E extends @Nullable Object> LinkedHashMultiset<E> create( Iterable<? extends E> elements) { LinkedHashMultiset<E> multiset = create(Multisets.inferDistinctElements(elements)); Iterables.addAll(multiset, elements); return multiset; } private LinkedHashMultiset() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 05 23:15:58 GMT 2025 - 3.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/TreeMultiset.java
} /** * Creates a new, empty multiset, sorted according to the specified comparator. All elements * inserted into the multiset must be <i>mutually comparable</i> by the specified comparator: * {@code comparator.compare(e1, e2)} must not throw a {@code ClassCastException} for any elements * {@code e1} and {@code e2} in the multiset. If the user attempts to add an element to the
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 33.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Serialization.java
Multiset<E> multiset, ObjectOutputStream stream) throws IOException { int entryCount = multiset.entrySet().size(); stream.writeInt(entryCount); for (Multiset.Entry<E> entry : multiset.entrySet()) { stream.writeObject(entry.getElement()); stream.writeInt(entry.getCount()); } } /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 6.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
final int distinctElements() { return backingMap.size(); } @Override public final Iterator<E> iterator() { return Multisets.iteratorImpl(this); } @Override public final int size() { return Ints.saturatedCast(size); } /** * @serialData the number of distinct elements, the first element, its count, the second element, * its count, and so on */
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 05 23:15:58 GMT 2025 - 7.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
* * @param elements the elements that the multiset should contain */ public static <E> ConcurrentHashMultiset<E> create(Iterable<? extends E> elements) { ConcurrentHashMultiset<E> multiset = create(); Iterables.addAll(multiset, elements); return multiset; } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Dec 08 22:42:14 GMT 2025 - 22.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableMultimap.java
} @Override public int size() { return ImmutableMultimap.this.size(); } @Override Multiset.Entry<K> getEntry(int index) { Map.Entry<K, ? extends Collection<V>> entry = map.entrySet().asList().get(index); return Multisets.immutableEntry(entry.getKey(), entry.getValue().size()); } @Override boolean isPartialView() { return true; }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 27.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableMultimap.java
} @Override public int size() { return ImmutableMultimap.this.size(); } @Override Multiset.Entry<K> getEntry(int index) { Map.Entry<K, ? extends Collection<V>> entry = map.entrySet().asList().get(index); return Multisets.immutableEntry(entry.getKey(), entry.getValue().size()); } @Override boolean isPartialView() { return true; }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Dec 09 15:58:48 GMT 2025 - 28.1K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
import com.google.common.collect.ImmutableTable; import com.google.common.collect.ListMultimap; import com.google.common.collect.MapDifference; import com.google.common.collect.Multimap; import com.google.common.collect.Multiset; import com.google.common.collect.PeekingIterator; import com.google.common.collect.Range; import com.google.common.collect.RowSortedTable; import com.google.common.collect.SetMultimap;
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 22.6K bytes - Click Count (0)