Lines Matching defs:multimap

33  * a <i>view</i> of a separate multimap which can still change, an instance of
37 * you easily make a "defensive copy" of a multimap provided to your class by
52 /** Returns the empty multimap. */
53 // Casting is safe because the multimap will never hold any elements.
60 * Returns an immutable multimap containing a single entry.
70 * Returns an immutable multimap containing the given entries, in order.
81 * Returns an immutable multimap containing the given entries, in order.
94 * Returns an immutable multimap containing the given entries, in order.
108 * Returns an immutable multimap containing the given entries, in order.
145 * times to build multiple multimaps in series. Each multimap contains the
185 Multimap<? extends K, ? extends V> multimap) {
186 super.putAll(multimap);
213 * Returns a newly-created immutable list multimap.
221 * Returns an immutable multimap containing the same mappings as {@code
222 * multimap}. The generated multimap's key and value orderings correspond to
223 * the iteration ordering of the {@code multimap.asMap()} view.
229 * @throws NullPointerException if any key or value in {@code multimap} is
233 Multimap<? extends K, ? extends V> multimap) {
234 if (multimap.isEmpty()) {
239 if (multimap instanceof ImmutableListMultimap) {
240 @SuppressWarnings("unchecked") // safe since multimap is not writable
242 = (ImmutableListMultimap<K, V>) multimap;
252 : multimap.asMap().entrySet()) {
271 * in the multimap have the provided key, an empty immutable list is
273 * this multimap.
286 * <p>Because an inverse of a list multimap can contain multiple pairs with the same key and
309 * Guaranteed to throw an exception and leave the multimap unmodified.
318 * Guaranteed to throw an exception and leave the multimap unmodified.