- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 166 for Multimaps (0.05 sec)
-
android/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 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/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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.6K bytes - Viewed (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 {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingListMultimap.java
import java.util.List; import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.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>. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 21:08:00 UTC 2021 - 2.2K bytes - Viewed (0) -
android/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) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java
* implementation. * * @author Louis Wasserman */ @GwtIncompatible public class MultimapTestSuiteBuilder<K, V, M extends Multimap<K, V>> extends PerCollectionSizeTestSuiteBuilder< MultimapTestSuiteBuilder<K, V, M>, TestMultimapGenerator<K, V, M>, M, Entry<K, V>> { public static <K, V, M extends Multimap<K, V>> MultimapTestSuiteBuilder<K, V, M> using(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 26.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingListMultimap.java
import java.util.List; import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.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>. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 21:08:00 UTC 2021 - 2.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingSortedSetMultimap.java
import java.util.SortedSet; import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.Nullable; /** * A sorted set multimap which forwards all its method calls to another sorted set 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 21:08:00 UTC 2021 - 2.3K bytes - Viewed (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, @CheckForNull Object mutex) { if (multimap instanceof SynchronizedMultimap || multimap instanceof BaseImmutableMultimap) { return multimap; } return new SynchronizedMultimap<>(multimap, mutex); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 53.4K bytes - Viewed (0) -
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, @CheckForNull Object mutex) { if (multimap instanceof SynchronizedMultimap || multimap instanceof BaseImmutableMultimap) { return multimap; } return new SynchronizedMultimap<>(multimap, mutex); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 57.2K bytes - Viewed (0)