- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 150 for MultiMap (0.23 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java
public void testAsMapValuesImplementSet() { for (Collection<V> valueCollection : multimap().asMap().values()) { assertTrue(valueCollection instanceof Set); } } public void testAsMapGetImplementsSet() { for (K key : multimap().keySet()) { assertTrue(multimap().asMap().get(key) instanceof Set); } } @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) -
guava/src/com/google/common/collect/ImmutableListMultimap.java
if (multimap.isEmpty()) { return of(); } // TODO(lowasser): copy ImmutableSetMultimap by using asList() on the sets if (multimap instanceof ImmutableListMultimap) { @SuppressWarnings("unchecked") // safe since multimap is not writable ImmutableListMultimap<K, V> kvMultimap = (ImmutableListMultimap<K, V>) multimap; if (!kvMultimap.isPartialView()) { return kvMultimap;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Aug 16 20:20:32 UTC 2024 - 19K bytes - Viewed (0) -
guava/src/com/google/common/collect/SortedSetMultimap.java
* already in the multimap has no effect. This interface does not specify the ordering of the * multimap's keys. See the {@link Multimap} documentation for information common to all multimaps. * * <p>The {@link #get}, {@link #removeAll}, and {@link #replaceValues} methods each return a {@link * SortedSet} of values, while {@link Multimap#entries()} returns a {@link Set} of map entries.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 24 17:47:51 UTC 2022 - 5.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java
multimap.put("foo", -1); multimap.put(null, null); multimap.put("bar", 1); multimap.put("foo", 2); multimap.put(null, 0); multimap.put("bar", 2); multimap.put("bar", null); multimap.put("foo", null); multimap.put("foo", 4); multimap.put(null, -1); multimap.put("bar", 3); multimap.put("bar", 1); multimap.put("foo", 1); assertEquals(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.6K 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/FilteredMultimap.java
import org.checkerframework.checker.nullness.qual.Nullable; /** * An interface for all filtered multimap types. * * @author Louis Wasserman */ @GwtCompatible @ElementTypesAreNonnullByDefault interface FilteredMultimap<K extends @Nullable Object, V extends @Nullable Object> extends Multimap<K, V> { Multimap<K, V> unfiltered(); Predicate<? super Entry<K, V>> entryPredicate();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 21:08:00 UTC 2021 - 1.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
assertEquals(HashMultiset.create(), multimap.keys()); assertEquals(emptySet(), multimap.keySet()); assertEquals(0, multimap.size()); assertTrue(multimap.values().isEmpty()); assertEquals("{}", multimap.toString()); } public void testEmptyMultimapWrites() { Multimap<String, Integer> multimap = ImmutableListMultimap.of();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 25.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java
@Override protected Iterator<String> newTargetIterator() { multimap = create(); multimap.putAll("foo", asList(2, 3)); multimap.putAll("bar", asList(4, 5)); multimap.putAll("foo", asList(6)); multimap.putAll("baz", asList(7, 8)); multimap.putAll("dog", asList(9)); multimap.putAll("bar", asList(10, 11));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapToStringTester.java
import com.google.common.annotations.GwtCompatible; import com.google.common.collect.Multimap; import com.google.common.collect.testing.features.CollectionFeature; import com.google.common.collect.testing.features.CollectionSize; import com.google.common.collect.testing.features.MapFeature; import org.junit.Ignore; /** * Tester for {@code Multimap.toString()}. * * @author Louis Wasserman */ @GwtCompatible
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 2.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapValuesTester.java
expected.add(entry.getValue()); } assertEqualInOrder(expected, multimap().values()); } @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE) @CollectionSize.Require(ONE) public void testValuesIteratorRemove() { Iterator<V> valuesItr = multimap().values().iterator(); valuesItr.next(); valuesItr.remove(); assertTrue(multimap().isEmpty()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 2.5K bytes - Viewed (0)