Lines Matching defs:multimap

30  * but different values, the multimap contains mappings from the key to both
35 * multimap. If the multimap is modifiable, updating it can change the contents
36 * of those collections, and updating the collections will change the multimap.
38 * that are independent of subsequent multimap changes.
40 * <p>Depending on the implementation, a multimap may or may not allow duplicate
41 * key-value pairs. In other words, the multimap contents after adding the same
43 * duplicates, the multimap will contain two mappings, and {@code get} will
45 * supporting duplicates, the multimap will contain a single mapping from the
49 * <p>All methods that alter the multimap are optional, and the views returned
50 * by the multimap may or may not be modifiable. When modification isn't
54 * @param <K> the type of keys maintained by this multimap
62 /** Returns the number of key-value pairs in the multimap. */
65 /** Returns {@code true} if the multimap contains no key-value pairs. */
69 * Returns {@code true} if the multimap contains any values for the specified
72 * @param key key to search for in multimap
77 * Returns {@code true} if the multimap contains the specified value for any
80 * @param value value to search for in multimap
85 * Returns {@code true} if the multimap contains the specified key-value pair.
87 * @param key key to search for in multimap
88 * @param value value to search for in multimap
95 * Stores a key-value pair in the multimap.
97 * <p>Some multimap implementations allow duplicate key-value pairs, in which
99 * multimap size by 1. Other implementations prohibit duplicates, and storing
100 * a key-value pair that's already in the multimap has no effect.
102 * @param key key to store in the multimap
103 * @param value value to store in the multimap
104 * @return {@code true} if the method increased the size of the multimap, or
105 * {@code false} if the multimap already contained the key-value pair and
111 * Removes a key-value pair from the multimap.
113 * @param key key of entry to remove from the multimap
114 * @param value value of entry to remove the multimap
115 * @return {@code true} if the multimap changed
124 * @param key key to store in the multimap
125 * @param values values to store in the multimap
126 * @return {@code true} if the multimap changed
131 * Copies all of another multimap's key-value pairs into this multimap. The
133 * {@code multimap.entries()}.
135 * @param multimap mappings to store in this multimap
136 * @return {@code true} if the multimap changed
138 boolean putAll(Multimap<? extends K, ? extends V> multimap);
144 * @param key key to store in the multimap
145 * @param values values to store in the multimap
149 * multimap.
156 * @param key key of entries to remove from the multimap
160 * multimap.
165 * Removes all key-value pairs from the multimap.
173 * mappings in the multimap have the provided key, an empty collection is
176 * <p>Changes to the returned collection will update the underlying multimap,
179 * @param key key to search for in multimap
186 * Changes to the returned set will update the underlying multimap, and vice
196 * mappings the key has in the multimap. Changes to the returned multiset will
197 * update the underlying multimap, and vice versa.
200 * multimap and frequencies corresponding to the number of values that
206 * Returns a collection of all values in the multimap. Changes to the returned
207 * collection will update the underlying multimap, and vice versa.
216 * collection will update the underlying multimap, and vice versa. The entries
225 * in the multimap. Changes to the returned map, such as element removal, will
226 * update the underlying multimap. The map does not support {@code setValue()}
241 * Compares the specified object with this multimap for equality. Two
260 * Returns the hash code for this multimap.
262 * <p>The hash code of a multimap is defined as the hash code of the map view,