Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 212 for Multimap (0.25 sec)

  1. android/guava/src/com/google/common/collect/Multimap.java

       */
      @CanIgnoreReturnValue
      boolean putAll(@ParametricNullness K key, Iterable<? extends V> values);
    
      /**
       * Stores all key-value pairs of {@code multimap} in this multimap, in the order returned by
       * {@code multimap.entries()}.
       *
       * @return {@code true} if the multimap changed
       */
      @CanIgnoreReturnValue
      boolean putAll(Multimap<? extends K, ? extends V> multimap);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

          fail("putAll(Multimap<K, V>) succeeded on unmodifiable multimap");
        } catch (UnsupportedOperationException expected) {
        }
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
        // Test #remove()
        try {
          multimap.remove(sampleKey, sampleValue);
          fail("remove succeeded on unmodifiable multimap");
        } catch (UnsupportedOperationException expected) {
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SynchronizedMultimapTest.java

        ListMultimap<String, Integer> multimap =
            Multimaps.synchronizedListMultimap(ArrayListMultimap.<String, Integer>create());
        multimap.putAll("foo", Arrays.asList(3, -1, 2, 4, 1));
        multimap.putAll("bar", Arrays.asList(1, 2, 3, 1));
        assertThat(multimap.removeAll("foo")).containsExactly(3, -1, 2, 4, 1).inOrder();
        assertFalse(multimap.containsKey("foo"));
        assertThat(multimap.replaceValues("bar", Arrays.asList(6, 5)))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 8.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       *
       * @throws NullPointerException if any key or value in {@code multimap} is null
       */
      public static <K, V> ImmutableSetMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap) {
        return copyOf(multimap, null);
      }
    
      private static <K, V> ImmutableSetMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap,
          @CheckForNull Comparator<? super V> valueComparator) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

          fail("putAll(Multimap<K, V>) succeeded on unmodifiable multimap");
        } catch (UnsupportedOperationException expected) {
        }
        assertMultimapRemainsUnmodified(multimap, originalEntries);
    
        // Test #remove()
        try {
          multimap.remove(sampleKey, sampleValue);
          fail("remove succeeded on unmodifiable multimap");
        } catch (UnsupportedOperationException expected) {
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 15K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/SetMultimap.java

    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@code Multimap} that cannot hold duplicate key-value pairs. Adding a key-value pair that's
     * already in the multimap has no effect. 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
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multimaps.java

          Multimap<K, V> synchronizedMultimap(Multimap<K, V> multimap) {
        return Synchronized.multimap(multimap, null);
      }
    
      /**
       * Returns an unmodifiable view of the specified multimap. Query operations on the returned
       * multimap "read through" to the specified multimap, and attempts to modify the returned
       * multimap, either directly or through the multimap's views, result in an {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  8. android/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()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        Multimap<String, Integer> multimap = createMultimap();
        assertTrue(multimap.containsKey("foo"));
        assertFalse(multimap.containsKey("cat"));
        assertTrue(multimap.containsValue(1));
        assertFalse(multimap.containsValue(5));
        assertTrue(multimap.containsEntry("foo", 1));
        assertFalse(multimap.containsEntry("cat", 1));
        assertFalse(multimap.containsEntry("foo", 5));
        assertFalse(multimap.entries().isEmpty());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/LinkedListMultimap.java

       * Multimap}. The new multimap has the same {@link Multimap#entries()} iteration order as the
       * input multimap.
       *
       * @param multimap the multimap whose contents are copied to this multimap
       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          LinkedListMultimap<K, V> create(Multimap<? extends K, ? extends V> multimap) {
        return new LinkedListMultimap<>(multimap);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
Back to top