Home | History | Annotate | Download | only in collect

Lines Matching full:multimap

35  * a <i>view</i> of a separate multimap which can still change, an instance of
39 * you easily make a "defensive copy" of a multimap provided to your class by
54 /** Returns the empty multimap. */
55 // Casting is safe because the multimap will never hold any elements.
64 * Returns an immutable multimap containing a single entry.
74 * Returns an immutable multimap containing the given entries, in order.
85 * Returns an immutable multimap containing the given entries, in order.
98 * Returns an immutable multimap containing the given entries, in order.
112 * Returns an immutable multimap containing the given entries, in order.
141 * static final Multimap<String, Integer> STRING_TO_INTEGER_MULTIMAP =
149 * multiple times to build multiple multimaps in series. Each multimap
161 * Adds a key-value mapping to the built multimap.
169 * Stores a collection of values with the same key in the built multimap.
181 * Stores an array of values with the same key in the built multimap.
192 * Stores another multimap's entries in the built multimap. The generated
193 * multimap's key and value orderings correspond to the iteration ordering
194 * of the {@code multimap.asMap()} view, with new keys and values following
197 * @throws NullPointerException if any key or value in {@code multimap} is
201 Multimap<? extends K, ? extends V> multimap) {
202 super.putAll(multimap);
207 * Returns a newly-created immutable multimap.
215 * Returns an immutable multimap containing the same mappings as
216 * {@code multimap}. The generated multimap's key and value orderings
217 * correspond to the iteration ordering of the {@code multimap.asMap()} view.
220 * {@code multimap} is an {@code ImmutableListMultimap}, no copy will actually
221 * be performed, and the given multimap itself will be returned.
223 * @throws NullPointerException if any key or value in {@code multimap} is
227 Multimap<? extends K, ? extends V> multimap) {
228 if (multimap.isEmpty()) {
232 if (multimap instanceof ImmutableListMultimap) {
233 @SuppressWarnings("unchecked") // safe since multimap is not writable
235 = (ImmutableListMultimap<K, V>) multimap;
243 : multimap.asMap().entrySet()) {
262 * in the multimap have the provided key, an empty immutable list is
264 * this multimap.
273 * Guaranteed to throw an exception and leave the multimap unmodified.
282 * Guaranteed to throw an exception and leave the multimap unmodified.