Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 150 for MultiMap (0.08 sec)

  1. 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)
  2. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        HashMultimap<K, V> multimap = HashMultimap.create();
        multimap.put(key, value);
        return multimap;
      }
    
      @Generates
      static <K, V> LinkedHashMultimap<K, V> generateLinkedHashMultimap(
          @Nullable K key, @Nullable V value) {
        LinkedHashMultimap<K, V> multimap = LinkedHashMultimap.create();
        multimap.put(key, value);
        return multimap;
      }
    
      @Generates
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt

      ) {
        val cookieStrings = mutableListOf<String>()
        for (cookie in cookies) {
          cookieStrings.add(cookieToString(cookie, true))
        }
        val multimap = mapOf("Set-Cookie" to cookieStrings)
        try {
          cookieHandler.put(url.toUri(), multimap)
        } catch (e: IOException) {
          Platform.get().log("Saving cookies failed for " + url.resolve("/...")!!, WARN, e)
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:10:43 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutAllTester.java

      public void testPutAllAddsAtEndInOrder() {
        List<V> values = asList(v3(), v1(), v4());
    
        for (K k : sampleKeys()) {
          resetContainer();
    
          List<V> expectedValues = copyToList(multimap().get(k));
    
          assertTrue(multimap().putAll(k, values));
          expectedValues.addAll(values);
    
          assertGet(k, expectedValues);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapPutAllTester.java

      public void testPutAllHandlesDuplicates() {
        List<V> valuesToPut = asList(v0(), v1(), v0());
    
        for (K k : sampleKeys()) {
          resetContainer();
    
          Set<V> expectedValues = copyToSet(multimap().get(k));
    
          multimap().putAll(k, valuesToPut);
          expectedValues.addAll(valuesToPut);
    
          assertGet(k, expectedValues);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/FilteredKeyMultimap.java

    /**
     * Implementation of {@link Multimaps#filterKeys(Multimap, Predicate)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    class FilteredKeyMultimap<K extends @Nullable Object, V extends @Nullable Object>
        extends AbstractMultimap<K, V> implements FilteredMultimap<K, V> {
      final Multimap<K, V> unfiltered;
      final Predicate<? super K> keyPredicate;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top