- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 188 for multimap (0.07 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.java
@CollectionSize.Require(absent = ZERO) public void testContainsKeyYes() { assertTrue(multimap().containsKey(k0())); } public void testContainsKeyNo() { assertFalse(multimap().containsKey(k3())); } public void testContainsKeysFromKeySet() { for (K k : multimap().keySet()) { assertTrue(multimap().containsKey(k)); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 19:10:20 UTC 2024 - 3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java
.addEqualityGroup(getSubjectGenerator().create(targetEntries.toArray())) .testEquals(); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(ALLOWS_NULL_KEYS) public void testEqualsMultimapWithNullKey() { Multimap<K, V> original = multimap(); initMultimapWithNullKey(); Multimap<K, V> withNull = multimap(); new EqualsTester() .addEqualityGroup(original)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java
initMultimapWithNullKey(); assertTrue(multimap().keySet().contains(null)); } @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES) public void testKeySetContainsNullKeyAbsent() { assertFalse(multimap().keySet().contains(null)); } @MapFeature.Require(SUPPORTS_REMOVE) public void testKeySetRemovePropagatesToMultimap() { int key0Count = multimap().get(k0()).size();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveAllTester.java
@MapFeature.Require(SUPPORTS_REMOVE) public void testRemoveAllAbsentKey() { assertEmpty(multimap().removeAll(k3())); expectUnchanged(); } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(SUPPORTS_REMOVE) public void testRemoveAllPresentKey() { assertContentsAnyOrder(multimap().removeAll(k0()), v0()); expectMissing(e0()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MultimapsFilterEntriesAsMapTest.java
Multimap<String, Integer> multimap = createMultimap(); return multimap.asMap(); } @Override protected Map<String, Collection<Integer>> makePopulatedMap() { Multimap<String, Integer> multimap = createMultimap(); populate(multimap); return multimap.asMap(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2K 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSetMultimap.java
if (multimap.isEmpty() && valueComparator == null) { return of(); } if (multimap instanceof ImmutableSetMultimap) { @SuppressWarnings("unchecked") // safe since multimap is not writable ImmutableSetMultimap<K, V> kvMultimap = (ImmutableSetMultimap<K, V>) multimap; if (!kvMultimap.isPartialView()) { return kvMultimap; } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 26.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/FilteredMultimapTest.java
} public void testFilterFiltered() { Multimap<String, Integer> unfiltered = HashMultimap.create(); unfiltered.put("foo", 55556); unfiltered.put("badkey", 1); unfiltered.put("foo", 1); Multimap<String, Integer> keyFiltered = filterKeys(unfiltered, KEY_PREDICATE); Multimap<String, Integer> filtered = filterValues(keyFiltered, VALUE_PREDICATE);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.4K 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.8K bytes - Viewed (0) -
android/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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.8K bytes - Viewed (0)