Home | History | Annotate | Download | only in collect

Lines Matching refs: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.
67 * Returns an immutable multimap containing a single entry.
76 * Returns an immutable multimap containing the given entries, in order.
88 * Returns an immutable multimap containing the given entries, in order.
102 * Returns an immutable multimap containing the given entries, in order.
117 * Returns an immutable multimap containing the given entries, in order.
142 * Multimap for {@link ImmutableSetMultimap.Builder} that maintains key
160 * static final Multimap<String, Integer> STRING_TO_INTEGER_MULTIMAP =
168 * multiple times to build multiple multimaps in series. Each multimap
173 private final Multimap<K, V> builderMultimap = new BuilderMultimap<K, V>();
182 * Adds a key-value mapping to the built multimap if it is not already
191 * Stores a collection of values with the same key in the built multimap.
206 * Stores an array of values with the same key in the built multimap.
216 * Stores another multimap's entries in the built multimap. The generated
217 * multimap's key and value orderings correspond to the iteration ordering
218 * of the {@code multimap.asMap()} view, with new keys and values following
221 * @throws NullPointerException if any key or value in {@code multimap} is
225 Multimap<? extends K, ? extends V> multimap) {
227 : multimap.asMap().entrySet()) {
234 * Returns a newly-created immutable set multimap.
242 * Returns an immutable set multimap containing the same mappings as
243 * {@code multimap}. The generated multimap's key and value orderings
244 * correspond to the iteration ordering of the {@code multimap.asMap()} view.
245 * Repeated occurrences of an entry in the multimap after the first are
249 * {@code multimap} is an {@code ImmutableSetMultimap}, no copy will actually
250 * be performed, and the given multimap itself will be returned.
252 * @throws NullPointerException if any key or value in {@code multimap} is
256 Multimap<? extends K, ? extends V> multimap) {
257 if (multimap.isEmpty()) {
261 if (multimap instanceof ImmutableSetMultimap) {
262 @SuppressWarnings("unchecked") // safe since multimap is not writable
264 = (ImmutableSetMultimap<K, V>) multimap;
272 : multimap.asMap().entrySet()) {
293 * in the multimap have the provided key, an empty immutable set is returned.
295 * multimap.
304 * Guaranteed to throw an exception and leave the multimap unmodified.
313 * Guaranteed to throw an exception and leave the multimap unmodified.
325 * Returns an immutable collection of all key-value pairs in the multimap.