Beispiel #1
0
 /**
  * Stores another multimap's entries in the built multimap. The generated multimap's key and
  * value orderings correspond to the iteration ordering of the {@code multimap.asMap()} view,
  * with new keys and values following any existing keys and values.
  *
  * @throws NullPointerException if any key or value in {@code multimap} is null. The builder is
  *     left in an invalid state.
  */
 public Builder<K, V> putAll(Multimap<? extends K, ? extends V> multimap) {
   for (Entry<? extends K, ? extends Collection<? extends V>> entry :
       multimap.asMap().entrySet()) {
     putAll(entry.getKey(), entry.getValue());
   }
   return this;
 }
 /**
  * {@inheritDoc}
  *
  * @since 19.0
  */
 @Beta
 @Override
 public Builder<K, V> putAll(Iterable<? extends Entry<? extends K, ? extends V>> entries) {
   super.putAll(entries);
   return this;
 }