Lines Matching defs:multimap

38  * a <i>view</i> of a separate multimap which can still change, an instance of
42 * you easily make a "defensive copy" of a multimap provided to your class by
57 /** Returns the empty multimap. */
58 // Casting is safe because the multimap will never hold any elements.
65 * Returns an immutable multimap containing a single entry.
74 * Returns an immutable multimap containing the given entries, in order.
86 * Returns an immutable multimap containing the given entries, in order.
100 * Returns an immutable multimap containing the given entries, in order.
115 * Returns an immutable multimap containing the given entries, in order.
160 Comparator<? super K> keyComparator, Multimap<K, V> multimap) {
162 putAll(multimap);
183 * times to build multiple multimaps in series. Each multimap contains the
199 * Adds a key-value mapping to the built multimap if it is not already
208 * Adds an entry to the built multimap if it is not already present.
231 Multimap<? extends K, ? extends V> multimap) {
233 : multimap.asMap().entrySet()) {
252 * Specifies the ordering of the generated multimap's values for each key.
255 * method of the generated multimap and its {@link Multimap#asMap()} view
270 * Returns a newly-created immutable set multimap.
278 * Returns an immutable set multimap containing the same mappings as
279 * {@code multimap}. The generated multimap's key and value orderings
280 * correspond to the iteration ordering of the {@code multimap.asMap()} view.
281 * Repeated occurrences of an entry in the multimap after the first are
288 * @throws NullPointerException if any key or value in {@code multimap} is
292 Multimap<? extends K, ? extends V> multimap) {
293 return copyOf(multimap, null);
297 Multimap<? extends K, ? extends V> multimap,
299 checkNotNull(multimap); // eager for GWT
300 if (multimap.isEmpty() && valueComparator == null) {
304 if (multimap instanceof ImmutableSetMultimap) {
305 @SuppressWarnings("unchecked") // safe since multimap is not writable
307 = (ImmutableSetMultimap<K, V>) multimap;
317 : multimap.asMap().entrySet()) {
347 * in the multimap have the provided key, an empty immutable set is returned.
349 * multimap.
368 * <p>Because an inverse of a set multimap cannot contain multiple pairs with the same key and
391 * Guaranteed to throw an exception and leave the multimap unmodified.
400 * Guaranteed to throw an exception and leave the multimap unmodified.
412 * Returns an immutable collection of all key-value pairs in the multimap.