- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 210 for multimaps (0.07 seconds)
-
guava-testlib/src/com/google/common/collect/testing/google/GoogleHelpers.java
import com.google.common.collect.Multimap; /** * Helper methods/assertions for use with {@code com.google.common.collect} types. * * @author Colin Decker */ @GwtCompatible final class GoogleHelpers { private GoogleHelpers() {} static void assertEmpty(Multimap<?, ?> multimap) { if (!multimap.isEmpty()) { fail("Not true that " + multimap + " is empty"); } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jun 23 04:28:13 GMT 2015 - 1.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
public enum ListMultimapImpl { ArrayListMultimapImpl { @Override <K, V> ListMultimap<K, V> create(Multimap<K, V> contents) { return ArrayListMultimap.create(contents); } }, LinkedListMultimapImpl { @Override <K, V> ListMultimap<K, V> create(Multimap<K, V> contents) { return LinkedListMultimap.create(contents); } }, ImmutableListMultimapImpl {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 12.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MultimapBuilderTest.java
public void testTreeKeys() { ListMultimap<String, Integer> multimap = MultimapBuilder.treeKeys().arrayListValues().build(); assertTrue(multimap.keySet() instanceof SortedSet); assertTrue(multimap.asMap() instanceof SortedMap); } public void testTreeKeys_gwtCompatible() { ListMultimap<String, Integer> multimap =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.2K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java
@CollectionSize.Require(SEVERAL) public void testMultimapRemoveDeletesFirstOccurrence() { resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v0())); List<V> list = multimap().get(k0()); multimap().remove(k0(), v0()); assertContentsInOrder(list, v1(), v0()); } @MapFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(SEVERAL) public void testRemoveAtIndexFromGetPropagates() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.7K bytes - Click Count (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);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 2.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ForwardingListMultimap.java
import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.util.List; import org.jspecify.annotations.Nullable; /** * A list multimap which forwards all its method calls to another list 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>. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 2.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/FilteredMultimap.java
import java.util.Map.Entry; import org.jspecify.annotations.Nullable; /** * An interface for all filtered multimap types. * * @author Louis Wasserman */ @GwtCompatible interface FilteredMultimap<K extends @Nullable Object, V extends @Nullable Object> extends Multimap<K, V> { Multimap<K, V> unfiltered(); Predicate<? super Entry<K, V>> entryPredicate();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
public enum ListMultimapImpl { ArrayListMultimapImpl { @Override <K, V> ListMultimap<K, V> create(Multimap<K, V> contents) { return ArrayListMultimap.create(contents); } }, LinkedListMultimapImpl { @Override <K, V> ListMultimap<K, V> create(Multimap<K, V> contents) { return LinkedListMultimap.create(contents); } }, ImmutableListMultimapImpl {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 12.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/FilteredMultimap.java
import java.util.Map.Entry; import org.jspecify.annotations.Nullable; /** * An interface for all filtered multimap types. * * @author Louis Wasserman */ @GwtCompatible interface FilteredMultimap<K extends @Nullable Object, V extends @Nullable Object> extends Multimap<K, V> { Multimap<K, V> unfiltered(); Predicate<? super Entry<K, V>> entryPredicate();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 1.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Synchronized.java
} static <K extends @Nullable Object, V extends @Nullable Object> Multimap<K, V> multimap( Multimap<K, V> multimap, @Nullable Object mutex) { if (multimap instanceof SynchronizedMultimap || multimap instanceof BaseImmutableMultimap) { return multimap; } return new SynchronizedMultimap<>(multimap, mutex); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Aug 08 15:11:10 GMT 2025 - 53K bytes - Click Count (0)