- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 158 for Multimaps (0.04 sec)
-
android/guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java
super(allowsNulls, allowsNulls, false, modifiable, modifiable, supportsIteratorRemove); } protected void populate(Multimap<String, Integer> multimap) { multimap.put("one", 1); multimap.put("two", 2); multimap.put("two", 22); multimap.put("three", 3); multimap.put("three", 33); multimap.put("three", 333); } @Override protected String getKeyNotInPopulatedMap() throws UnsupportedOperationException {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 18 14:47:20 UTC 2025 - 3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java
public void testAsMapValuesImplementList() { for (Collection<V> valueCollection : multimap().asMap().values()) { assertTrue(valueCollection instanceof List); } } public void testAsMapGetImplementsList() { for (K key : multimap().keySet()) { assertTrue(multimap().asMap().get(key) instanceof List); } } @MapFeature.Require(SUPPORTS_REMOVE)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 4.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java
public void testAsMapValuesImplementList() { for (Collection<V> valueCollection : multimap().asMap().values()) { assertTrue(valueCollection instanceof List); } } public void testAsMapGetImplementsList() { for (K key : multimap().keySet()) { assertTrue(multimap().asMap().get(key) instanceof List); } } @MapFeature.Require(SUPPORTS_REMOVE)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 4.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutTester.java
public void testPutDuplicateValue() { List<Entry<K, V>> entries = copyToList(multimap().entries()); for (Entry<K, V> entry : entries) { resetContainer(); K k = entry.getKey(); V v = entry.getValue(); List<V> values = multimap().get(k); List<V> expectedValues = copyToList(values); assertTrue(multimap().put(k, v)); expectedValues.add(v); assertGet(k, expectedValues);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 2.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractSetMultimap.java
return super.asMap(); } /** * Stores a key-value pair in the multimap. * * @param key key to store in the multimap * @param value value to store in the multimap * @return {@code true} if the method increased the size of the multimap, or {@code false} if the * multimap already contained the key-value pair */ @CanIgnoreReturnValue @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Mar 20 13:05:10 UTC 2025 - 4.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsValueTester.java
@SuppressWarnings("JUnit4ClassUsedInJUnit3") public class MultimapContainsValueTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { @CollectionSize.Require(absent = ZERO) public void testContainsValueYes() { assertTrue(multimap().containsValue(v0())); } public void testContainsValueNo() { assertFalse(multimap().containsValue(v3())); } @MapFeature.Require(ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 2.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapFeature.java
@GwtCompatible public enum MultimapFeature implements Feature<Multimap> { VALUE_COLLECTIONS_SUPPORT_ITERATOR_REMOVE; private final Set<Feature<? super Multimap>> implied; MultimapFeature(Feature<? super Multimap>... implied) { this.implied = copyToSet(implied); } @Override public Set<Feature<? super Multimap>> getImpliedFeatures() { return implied; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jan 30 16:59:10 UTC 2025 - 1.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingMultimap.java
import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.jspecify.annotations.Nullable; /** * A multimap which forwards all its method calls to another multimap. Subclasses should override * one or more methods to modify the behavior of the backing multimap as desired per the <a * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 21:10:54 UTC 2025 - 4.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingMultimap.java
import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.jspecify.annotations.Nullable; /** * A multimap which forwards all its method calls to another multimap. Subclasses should override * one or more methods to modify the behavior of the backing multimap as desired per the <a * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 21:10:54 UTC 2025 - 4.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutTester.java
@CollectionSize.Require(absent = ZERO) public void testPutDuplicateValuePreservesSize() { assertFalse(multimap().put(k0(), v0())); assertEquals(getNumElements(), multimap().size()); } @MapFeature.Require(SUPPORTS_PUT) public void testPutDuplicateValue() { List<Entry<K, V>> entries = copyToList(multimap().entries()); for (Entry<K, V> entry : entries) { resetContainer(); K k = entry.getKey();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 2.8K bytes - Viewed (0)