- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 212 for multiSeg (0.14 sec)
-
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 = ConcurrentHashMultiset.create(); Iterables.addAll(multiset, elements); return multiset; } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 20.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
} // Required Implementations /** * {@inheritDoc} * * <p>Invoking {@link Multiset.Entry#getCount} on an entry in the returned set always returns the * current count of that element in the multiset, as opposed to the count at the time the entry * was retrieved. */ @Override public Set<Multiset.Entry<E>> entrySet() { return super.entrySet(); } @Override Iterator<E> elementIterator() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 06 16:06:58 UTC 2023 - 10.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java
multiset.addAll(adds); assertEquals(1, addCalls.get()); } public void testRemoveUnsupported() { Multiset<String> multiset = new NoRemoveMultiset<>(); multiset.add("a"); try { multiset.remove("a"); fail(); } catch (UnsupportedOperationException expected) { } assertTrue(multiset.contains("a")); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 10:16:44 UTC 2024 - 5.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java
} @CollectionSize.Require(ONE) @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE) public void testKeysEntrySetIteratorRemove() { Multiset<K> keys = multimap().keys(); Iterator<Multiset.Entry<K>> itr = keys.entrySet().iterator(); assertEquals(Multisets.immutableEntry(k0(), 1), itr.next()); itr.remove(); assertTrue(multimap().isEmpty()); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 4.3K bytes - Viewed (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() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java
} public void testEmptyRangeSubMultiset(SortedMultiset<E> multiset) { assertTrue(multiset.isEmpty()); assertEquals(0, multiset.size()); assertEquals(0, multiset.toArray().length); assertTrue(multiset.entrySet().isEmpty()); assertFalse(multiset.iterator().hasNext()); assertEquals(0, multiset.entrySet().size()); assertEquals(0, multiset.entrySet().toArray().length);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 20 17:00:05 UTC 2024 - 25.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EnumMultiset.java
import java.util.NoSuchElementException; import javax.annotation.CheckForNull; /** * Multiset implementation specialized for enum elements, supporting all single-element operations * in O(1). * * <p>See the Guava User Guide article on <a href= * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#multiset">{@code Multiset}</a>. * * @author Jared Levy * @since 2.0 */ @GwtCompatible(emulated = true)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 9K bytes - Viewed (0) -
guava/src/com/google/common/collect/DescendingMultiset.java
return (result == null) ? entrySet = createEntrySet() : result; } Set<Entry<E>> createEntrySet() { @WeakOuter class EntrySetImpl extends Multisets.EntrySet<E> { @Override Multiset<E> multiset() { return DescendingMultiset.this; } @Override public Iterator<Entry<E>> iterator() { return entryIterator(); } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jun 26 21:02:13 UTC 2023 - 4.5K bytes - Viewed (0) -
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()); } } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 06 16:06:58 UTC 2023 - 8.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java
setCountCheckReturnValue(element, count); assertEquals( "multiset.count() should return the value passed to setCount()", count, getMultiset().count(element)); int size = 0; for (Multiset.Entry<E> entry : getMultiset().entrySet()) { size += entry.getCount(); } assertEquals( "multiset.size() should be the sum of the counts of all entries", size,
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 13.4K bytes - Viewed (0)