Lines Matching defs:multimap

43  * a <i>view</i> of a separate multimap which can still change, an instance of
47 * you easily make a "defensive copy" of a multimap provided to your class by
68 /** Returns an empty multimap. */
74 * Returns an immutable multimap containing a single entry.
81 * Returns an immutable multimap containing the given entries, in order.
88 * Returns an immutable multimap containing the given entries, in order.
96 * Returns an immutable multimap containing the given entries, in order.
104 * Returns an immutable multimap containing the given entries, in order.
137 * A builder for creating immutable multimap instances, especially
149 * times to build multiple multimaps in series. Each multimap contains the
166 * Adds a key-value mapping to the built multimap.
175 * Adds an entry to the built multimap.
184 * Stores a collection of values with the same key in the built multimap.
204 * Stores an array of values with the same key in the built multimap.
214 * Stores another multimap's entries in the built multimap. The generated
215 * multimap's key and value orderings correspond to the iteration ordering
216 * of the {@code multimap.asMap()} view, with new keys and values following
219 * @throws NullPointerException if any key or value in {@code multimap} is
222 public Builder<K, V> putAll(Multimap<? extends K, ? extends V> multimap) {
224 : multimap.asMap().entrySet()) {
231 * Specifies the ordering of the generated multimap's keys.
241 * Specifies the ordering of the generated multimap's values for each key.
251 * Returns a newly-created immutable multimap.
277 * Returns an immutable multimap containing the same mappings as {@code
278 * multimap}. The generated multimap's key and value orderings correspond to
279 * the iteration ordering of the {@code multimap.asMap()} view.
285 * @throws NullPointerException if any key or value in {@code multimap} is
289 Multimap<? extends K, ? extends V> multimap) {
290 if (multimap instanceof ImmutableMultimap) {
291 @SuppressWarnings("unchecked") // safe since multimap is not writable
293 = (ImmutableMultimap<K, V>) multimap;
298 return ImmutableListMultimap.copyOf(multimap);
329 * Guaranteed to throw an exception and leave the multimap unmodified.
341 * Guaranteed to throw an exception and leave the multimap unmodified.
354 * Guaranteed to throw an exception and leave the multimap unmodified.
367 * mappings in the multimap have the provided key, an empty immutable
369 * used to build this multimap.
375 * Returns an immutable multimap which is the inverse of this one. For every
384 * Guaranteed to throw an exception and leave the multimap unmodified.
396 * Guaranteed to throw an exception and leave the multimap unmodified.
408 * Guaranteed to throw an exception and leave the multimap unmodified.
415 public boolean putAll(Multimap<? extends K, ? extends V> multimap) {
420 * Guaranteed to throw an exception and leave the multimap unmodified.
432 * Returns {@code true} if this immutable multimap's implementation contains references to
433 * user-created objects that aren't accessible via this multimap's methods. This is generally
461 * Returns an immutable set of the distinct keys in this multimap. These keys
463 * of this multimap.
472 * values in the multimap.
486 * Returns an immutable collection of all key-value pairs in the multimap. Its
502 final ImmutableMultimap<K, V> multimap;
504 EntryCollection(ImmutableMultimap<K, V> multimap) {
505 this.multimap = multimap;
509 return multimap.entryIterator();
513 return multimap.isPartialView();
518 return multimap.size();
524 return multimap.containsEntry(entry.getKey(), entry.getValue());
568 * mappings the key has in the multimap. Duplicate keys appear consecutively
617 * Returns an immutable collection of the values in this multimap. Its
642 private transient final ImmutableMultimap<K, V> multimap;
644 Values(ImmutableMultimap<K, V> multimap) {
645 this.multimap = multimap;
650 return multimap.containsValue(object);
654 return multimap.valueIterator();
660 for (ImmutableCollection<V> valueCollection : multimap.map.values()) {
668 return multimap.size();