Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 217 for Multimap (0.18 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  2. 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)
  3. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  4. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 25.6K bytes
    - Viewed (0)
  5. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableListMultimap.java

       *
       * @throws NullPointerException if any key or value in {@code multimap} is null
       */
      public static <K, V> ImmutableListMultimap<K, V> copyOf(
          Multimap<? extends K, ? extends V> multimap) {
        if (multimap.isEmpty()) {
          return of();
        }
    
        // TODO(lowasser): copy ImmutableSetMultimap by using asList() on the sets
        if (multimap instanceof ImmutableListMultimap) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 17.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        TreeMultimap<String, Integer> multimap = TreeMultimap.create();
        multimap.put("google", 2);
        multimap.put("google", 6);
        multimap.put("foo", 3);
        multimap.put("foo", 1);
        multimap.put("foo", 7);
        multimap.put("tree", 4);
        multimap.put("tree", 0);
        return multimap;
      }
    
      public void testToString() {
        SetMultimap<String, Integer> multimap = create();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  8. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 86.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/HashMultimap.java

       * key-value mapping appears multiple times in the input multimap, it only appears once in the
       * constructed multimap.
       *
       * <p>This method will soon be deprecated in favor of {@code
       * MultimapBuilder.hashKeys().hashSetValues().build(multimap)}.
       *
       * @param multimap the multimap whose contents are copied to this multimap
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/CollectCollectors.java

        checkNotNull(multimapSupplier);
        return Collector.of(
            multimapSupplier,
            (multimap, input) -> multimap.put(keyFunction.apply(input), valueFunction.apply(input)),
            (multimap1, multimap2) -> {
              multimap1.putAll(multimap2);
              return multimap1;
            });
      }
    
      static <
              T extends @Nullable Object,
              K extends @Nullable Object,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
Back to top