- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 158 for Multimaps (0.06 seconds)
-
guava/src/com/google/common/collect/ImmutableMultimap.java
* * @throws NullPointerException if any key or value in {@code multimap} is null */ public static <K, V> ImmutableMultimap<K, V> copyOf(Multimap<? extends K, ? extends V> multimap) { if (multimap instanceof ImmutableMultimap) { @SuppressWarnings("unchecked") // safe since multimap is not writable ImmutableMultimap<K, V> kvMultimap = (ImmutableMultimap<K, V>) multimap; if (!kvMultimap.isPartialView()) {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) -
android/guava/src/com/google/common/collect/AbstractListMultimap.java
* Multimap} interface. */ @CanIgnoreReturnValue @Override public List<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) { return (List<V>) super.replaceValues(key, values); } /** * Stores a key-value pair in the multimap. * * @param key key to store in the multimap * @param value value to store in the multimap
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Apr 12 15:07:59 GMT 2025 - 4.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/TestMultimapGenerator.java
import com.google.common.collect.Multimap; import com.google.common.collect.testing.SampleElements; import com.google.common.collect.testing.TestContainerGenerator; import java.util.Collection; import java.util.Map.Entry; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Creates multimaps, containing sample elements, to be tested. * * @author Louis Wasserman
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/TestMultimapGenerator.java
import com.google.common.collect.Multimap; import com.google.common.collect.testing.SampleElements; import com.google.common.collect.testing.TestContainerGenerator; import java.util.Collection; import java.util.Map.Entry; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * Creates multimaps, containing sample elements, to be tested. * * @author Louis Wasserman
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/FilteredKeyListMultimap.java
import com.google.common.annotations.GwtCompatible; import com.google.common.base.Predicate; import java.util.List; import org.jspecify.annotations.Nullable; /** * Implementation of {@link Multimaps#filterKeys(ListMultimap, Predicate)}. * * @author Louis Wasserman */ @GwtCompatible final class FilteredKeyListMultimap<K extends @Nullable Object, V extends @Nullable Object>Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java
assertEquals(0, multimap().size()); assertEmpty(multimap()); assertEquals(multimap(), getSubjectGenerator().create()); assertEmpty(multimap().entries()); assertEmpty(multimap().asMap()); assertEmpty(multimap().keySet()); assertEmpty(multimap().keys()); assertEmpty(multimap().values()); for (K key : sampleKeys()) { assertGet(key); } } @MapFeature.Require(SUPPORTS_REMOVE)
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 12 21:10:54 GMT 2025 - 4.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java
public void testPutAllIntoEmpty() { Multimap<K, V> target = getSubjectGenerator().create(); assertEquals(!multimap().isEmpty(), target.putAll(multimap())); assertEquals(multimap(), target); } @MapFeature.Require(SUPPORTS_PUT) public void testPutAll() { Multimap<K, V> source = getSubjectGenerator().create(mapEntry(k0(), v3()), mapEntry(k3(), v3())); assertTrue(multimap().putAll(source));
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 12 21:10:54 GMT 2025 - 4.2K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java
public void testPutAllIntoEmpty() { Multimap<K, V> target = getSubjectGenerator().create(); assertEquals(!multimap().isEmpty(), target.putAll(multimap())); assertEquals(multimap(), target); } @MapFeature.Require(SUPPORTS_PUT) public void testPutAll() { Multimap<K, V> source = getSubjectGenerator().create(mapEntry(k0(), v3()), mapEntry(k3(), v3())); assertTrue(multimap().putAll(source));
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 12 21:10:54 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/FilteredKeySetMultimap.java
import com.google.common.annotations.GwtCompatible; import com.google.common.base.Predicate; import java.util.Map.Entry; import java.util.Set; import org.jspecify.annotations.Nullable; /** * Implementation of {@link Multimaps#filterKeys(SetMultimap, Predicate)}. * * @author Louis Wasserman */ @GwtCompatible final class FilteredKeySetMultimap<K extends @Nullable Object, V extends @Nullable Object>Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 2.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java
assertEquals(0, multimap().size()); assertEmpty(multimap()); assertEquals(multimap(), getSubjectGenerator().create()); assertEmpty(multimap().entries()); assertEmpty(multimap().asMap()); assertEmpty(multimap().keySet()); assertEmpty(multimap().keys()); assertEmpty(multimap().values()); for (K key : sampleKeys()) { assertGet(key); } } @MapFeature.Require(SUPPORTS_REMOVE)
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 12 21:10:54 GMT 2025 - 4.3K bytes - Click Count (0)