1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.5.0_06) on Wed Aug 20 17:16:45 PDT 2008 -->
7 HashMultimap (Google Collections Library - snapshot-
20080820 (ALPHA))
10 <META NAME=
"keywords" CONTENT=
"com.google.common.collect.HashMultimap class">
12 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../../../stylesheet.css" TITLE=
"Style">
14 <SCRIPT type=
"text/javascript">
15 function windowTitle()
17 parent.document.
title=
"HashMultimap (Google Collections Library - snapshot-20080820 (ALPHA))";
25 <BODY BGCOLOR=
"white" onload=
"windowTitle();">
28 <!-- ========= START OF TOP NAVBAR ======= -->
29 <A NAME=
"navbar_top"><!-- --></A>
30 <A HREF=
"#skip-navbar_top" title=
"Skip navigation links"></A>
31 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
33 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
34 <A NAME=
"navbar_top_firstrow"><!-- --></A>
35 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
36 <TR ALIGN=
"center" VALIGN=
"top">
37 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
38 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
39 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
40 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
41 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
42 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
43 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
47 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
53 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
54 <A HREF=
"../../../../com/google/common/collect/HashBiMap.html" title=
"class in com.google.common.collect"><B>PREV CLASS
</B></A>
55 <A HREF=
"../../../../com/google/common/collect/HashMultiset.html" title=
"class in com.google.common.collect"><B>NEXT CLASS
</B></A></FONT></TD>
56 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
57 <A HREF=
"../../../../index.html?com/google/common/collect/HashMultimap.html" target=
"_top"><B>FRAMES
</B></A>
58 <A HREF=
"HashMultimap.html" target=
"_top"><B>NO FRAMES
</B></A>
59 <SCRIPT type=
"text/javascript">
62 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 <A HREF=
"../../../../allclasses-noframe.html"><B>All Classes
</B></A>
74 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
75 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
76 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
77 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
80 <A NAME=
"skip-navbar_top"></A>
81 <!-- ========= END OF TOP NAVBAR ========= -->
84 <!-- ======== START OF CLASS DATA ======== -->
87 com.google.common.collect
</FONT>
89 Class HashMultimap
<K,V
></H2>
91 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">java.lang.Object
</A>
92 <IMG SRC=
"../../../../resources/inherit.gif" ALT=
"extended by "><B>com.google.common.collect.HashMultimap
<K,V
></B>
95 <DT><B>All Implemented Interfaces:
</B> <DD><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
>,
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"interface in com.google.common.collect">SetMultimap
</A><K,V
>,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/io/Serializable.html" title=
"class or interface in java.io">Serializable
</A></DD>
99 <DT><PRE>public final class
<B>HashMultimap
<K,V
></B><DT>extends
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A></DL>
103 Implementation of
<A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect"><CODE>Multimap
</CODE></A> using hash tables.
105 <p>The multimap does not store duplicate key-value pairs. Adding a new
106 key-value pair equal to an existing key-value pair has no effect.
108 <p>Keys and values may be null. All optional multimap methods are supported,
109 and all returned views are modifiable.
111 <p>This class is not threadsafe when any concurrent operations update the
112 multimap. Concurrent read operations will work correctly. To allow concurrent
113 update operations, wrap your multimap with a call to
<A HREF=
"../../../../com/google/common/collect/Multimaps.html#synchronizedSetMultimap(com.google.common.collect.SetMultimap)"><CODE>Multimaps.synchronizedSetMultimap(com.google.common.collect.SetMultimap
<K, V
>)
</CODE></A>.
118 <DT><B>Author:
</B></DT>
120 <DT><B>See Also:
</B><DD><A HREF=
"../../../../serialized-form.html#com.google.common.collect.HashMultimap">Serialized Form
</A></DL>
125 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
127 <A NAME=
"constructor_summary"><!-- --></A>
128 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
129 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
130 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
131 <B>Constructor Summary
</B></FONT></TH>
133 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
134 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#HashMultimap()">HashMultimap
</A></B>()
</CODE>
137 Constructs an empty
<code>HashMultimap
</code>.
</TD>
139 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
140 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#HashMultimap(com.google.common.collect.Multimap)">HashMultimap
</A></B>(
<A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><? extends
<A HREF=
"../../../../com/google/common/collect/HashMultimap.html" title=
"type parameter in HashMultimap">K
</A>,? extends
<A HREF=
"../../../../com/google/common/collect/HashMultimap.html" title=
"type parameter in HashMultimap">V
</A>> multimap)
</CODE>
143 Constructs a
<code>HashMultimap
</code> with the same mappings as the specified
144 <code>Multimap
</code>.
</TD>
148 <!-- ========== METHOD SUMMARY =========== -->
150 <A NAME=
"method_summary"><!-- --></A>
151 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
152 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
153 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
154 <B>Method Summary
</B></FONT></TH>
156 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
157 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
158 <CODE> <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Map.html" title=
"class or interface in java.util">Map
</A><K,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Collection.html" title=
"class or interface in java.util">Collection
</A><V
>></CODE></FONT></TD>
159 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#asMap()">asMap
</A></B>()
</CODE>
162 Returns a map view that associates each key with the corresponding values
163 in the multimap.
</TD>
165 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
166 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
167 <CODE> void
</CODE></FONT></TD>
168 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#clear()">clear
</A></B>()
</CODE>
171 Removes all key-value pairs from the multimap.
</TD>
173 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
174 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
175 <CODE> boolean
</CODE></FONT></TD>
176 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#containsEntry(java.lang.Object, java.lang.Object)">containsEntry
</A></B>(
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> key,
177 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> value)
</CODE>
180 Returns
<code>true
</code> if the multimap contains the specified key-value pair.
</TD>
182 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
183 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
184 <CODE> boolean
</CODE></FONT></TD>
185 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#containsKey(java.lang.Object)">containsKey
</A></B>(
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> key)
</CODE>
188 Returns
<code>true
</code> if the multimap contains any values for the specified
191 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
192 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
193 <CODE> boolean
</CODE></FONT></TD>
194 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#containsValue(java.lang.Object)">containsValue
</A></B>(
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> value)
</CODE>
197 Returns
<code>true
</code> if the multimap contains the specified value for any
200 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
201 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
202 <CODE> <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html" title=
"class or interface in java.util">Map.Entry
</A><K,V
>></CODE></FONT></TD>
203 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#entries()">entries
</A></B>()
</CODE>
206 Returns a collection of all key-value pairs.
</TD>
208 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
209 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
210 <CODE> boolean
</CODE></FONT></TD>
211 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#equals(java.lang.Object)">equals
</A></B>(
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> obj)
</CODE>
214 Compares the specified object to this multimap for equality.
</TD>
216 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
217 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
218 <CODE> <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><V
></CODE></FONT></TD>
219 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#get(K)">get
</A></B>(K
key)
</CODE>
222 Returns a collection view of all values associated with a key.
</TD>
224 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
225 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
226 <CODE> int
</CODE></FONT></TD>
227 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#hashCode()">hashCode
</A></B>()
</CODE>
230 Returns the hash code for this multimap.
</TD>
232 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
233 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
234 <CODE> boolean
</CODE></FONT></TD>
235 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#isEmpty()">isEmpty
</A></B>()
</CODE>
238 Returns
<code>true
</code> if the multimap contains no key-value pairs.
</TD>
240 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
241 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
242 <CODE> <A HREF=
"../../../../com/google/common/collect/Multiset.html" title=
"interface in com.google.common.collect">Multiset
</A><K
></CODE></FONT></TD>
243 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#keys()">keys
</A></B>()
</CODE>
246 Returns a collection, which may contain duplicates, of all keys.
</TD>
248 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
249 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
250 <CODE> <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><K
></CODE></FONT></TD>
251 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#keySet()">keySet
</A></B>()
</CODE>
254 Returns the set of all keys, each appearing once in the returned set.
</TD>
256 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
257 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
258 <CODE> boolean
</CODE></FONT></TD>
259 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#put(K, V)">put
</A></B>(K
key,
263 Stores a key-value pair in the multimap.
</TD>
265 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
266 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
267 <CODE> boolean
</CODE></FONT></TD>
268 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#putAll(K, java.lang.Iterable)">putAll
</A></B>(K
key,
269 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html" title=
"class or interface in java.lang">Iterable
</A><? extends V
> values)
</CODE>
272 Stores a collection of values with the same key.
</TD>
274 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
275 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
276 <CODE> boolean
</CODE></FONT></TD>
277 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#putAll(com.google.common.collect.Multimap)">putAll
</A></B>(
<A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><? extends K,? extends V
> multimap)
</CODE>
280 Copies all of another multimap's key-value pairs into this multimap.
</TD>
282 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
283 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
284 <CODE> boolean
</CODE></FONT></TD>
285 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#remove(java.lang.Object, java.lang.Object)">remove
</A></B>(
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> key,
286 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> value)
</CODE>
289 Removes a key-value pair from the multimap.
</TD>
291 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
292 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
293 <CODE> <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><V
></CODE></FONT></TD>
294 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#removeAll(java.lang.Object)">removeAll
</A></B>(
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> key)
</CODE>
297 Removes all values associated with a given key.
</TD>
299 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
300 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
301 <CODE> <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><V
></CODE></FONT></TD>
302 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#replaceValues(K, java.lang.Iterable)">replaceValues
</A></B>(K
key,
303 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html" title=
"class or interface in java.lang">Iterable
</A><? extends V
> values)
</CODE>
306 Stores a collection of values with the same key, replacing any existing
307 values for that key.
</TD>
309 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
310 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
311 <CODE>protected
void
</CODE></FONT></TD>
312 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#setMap(java.util.Map)">setMap
</A></B>(
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Map.html" title=
"class or interface in java.util">Map
</A><K,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Collection.html" title=
"class or interface in java.util">Collection
</A><V
>> map)
</CODE>
315 Used during deserialization only.
</TD>
317 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
318 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
319 <CODE> int
</CODE></FONT></TD>
320 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#size()">size
</A></B>()
</CODE>
323 Returns the number of key-value pairs in the multimap.
</TD>
325 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
326 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
327 <CODE> <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/String.html" title=
"class or interface in java.lang">String
</A></CODE></FONT></TD>
328 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#toString()">toString
</A></B>()
</CODE>
331 Returns a string representation of the multimap, generated by calling
332 <code>toString
</code> on the map returned by
<A HREF=
"../../../../com/google/common/collect/Multimap.html#asMap()"><CODE>Multimap.asMap()
</CODE></A>.
</TD>
334 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
335 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
336 <CODE> <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Collection.html" title=
"class or interface in java.util">Collection
</A><V
></CODE></FONT></TD>
337 <TD><CODE><B><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#values()">values
</A></B>()
</CODE>
340 Returns a collection of all values in the multimap.
</TD>
343 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
344 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
345 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
346 <TH ALIGN=
"left"><B>Methods inherited from class java.lang.
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A></B></TH>
348 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
349 <TD><CODE><A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html#clone()" title=
"class or interface in java.lang">clone
</A>,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html#finalize()" title=
"class or interface in java.lang">finalize
</A>,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html#getClass()" title=
"class or interface in java.lang">getClass
</A>,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notify()" title=
"class or interface in java.lang">notify
</A>,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notifyAll()" title=
"class or interface in java.lang">notifyAll
</A>,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait()" title=
"class or interface in java.lang">wait
</A>,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long)" title=
"class or interface in java.lang">wait
</A>,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long, int)" title=
"class or interface in java.lang">wait
</A></CODE></TD>
352 <A NAME=
"methods_inherited_from_class_com.google.common.collect.SetMultimap"><!-- --></A>
353 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
354 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
355 <TH ALIGN=
"left"><B>Methods inherited from interface com.google.common.collect.
<A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"interface in com.google.common.collect">SetMultimap
</A></B></TH>
357 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
358 <TD><CODE><A HREF=
"../../../../com/google/common/collect/SetMultimap.html#asMap()">asMap
</A></CODE></TD>
361 <A NAME=
"methods_inherited_from_class_com.google.common.collect.Multimap"><!-- --></A>
362 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
363 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
364 <TH ALIGN=
"left"><B>Methods inherited from interface com.google.common.collect.
<A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A></B></TH>
366 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
367 <TD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#clear()">clear
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#containsEntry(java.lang.Object, java.lang.Object)">containsEntry
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#containsKey(java.lang.Object)">containsKey
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#containsValue(java.lang.Object)">containsValue
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#hashCode()">hashCode
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#isEmpty()">isEmpty
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#keys()">keys
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#keySet()">keySet
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#putAll(K, java.lang.Iterable)">putAll
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#putAll(com.google.common.collect.Multimap)">putAll
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#remove(java.lang.Object, java.lang.Object)">remove
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#size()">size
</A>,
<A HREF=
"../../../../com/google/common/collect/Multimap.html#values()">values
</A></CODE></TD>
373 <!-- ========= CONSTRUCTOR DETAIL ======== -->
375 <A NAME=
"constructor_detail"><!-- --></A>
376 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
377 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
378 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
379 <B>Constructor Detail
</B></FONT></TH>
383 <A NAME=
"HashMultimap()"><!-- --></A><H3>
386 public
<B>HashMultimap
</B>()
</PRE>
388 <DD>Constructs an empty
<code>HashMultimap
</code>.
393 <A NAME=
"HashMultimap(com.google.common.collect.Multimap)"><!-- --></A><H3>
396 public
<B>HashMultimap
</B>(
<A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><? extends
<A HREF=
"../../../../com/google/common/collect/HashMultimap.html" title=
"type parameter in HashMultimap">K
</A>,? extends
<A HREF=
"../../../../com/google/common/collect/HashMultimap.html" title=
"type parameter in HashMultimap">V
</A>> multimap)
</PRE>
398 <DD>Constructs a
<code>HashMultimap
</code> with the same mappings as the specified
399 <code>Multimap
</code>. If a key-value mapping appears multiple times in the
400 input multimap, it only appears once in the constructed multimap.
403 <DT><B>Parameters:
</B><DD><CODE>multimap
</CODE> - the multimap whose contents are copied to this multimap.
<DT><B>See Also:
</B><DD><A HREF=
"../../../../com/google/common/collect/HashMultimap.html#putAll(com.google.common.collect.Multimap)"><CODE>putAll(Multimap)
</CODE></A></DL>
406 <!-- ============ METHOD DETAIL ========== -->
408 <A NAME=
"method_detail"><!-- --></A>
409 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
410 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
411 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
412 <B>Method Detail
</B></FONT></TH>
416 <A NAME=
"get(java.lang.Object)"><!-- --></A><A NAME=
"get(K)"><!-- --></A><H3>
419 public
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><V
> <B>get
</B>(
<FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
422 <DD>Returns a collection view of all values associated with a key. If no
423 mappings in the multimap have the provided key, an empty collection is
426 <p>Changes to the returned collection will update the underlying multimap,
429 <p>The returned collection is not serializable.
432 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#get(K)">get
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE><DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/SetMultimap.html#get(K)">get
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"interface in com.google.common.collect">SetMultimap
</A><K,V
></CODE></DL>
435 <DT><B>Parameters:
</B><DD><CODE>key
</CODE> - key to search for in multimap
436 <DT><B>Returns:
</B><DD>the collection of values that the key maps to
</DL>
441 <A NAME=
"entries()"><!-- --></A><H3>
444 public
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html" title=
"class or interface in java.util">Map.Entry
</A><K,V
>> <B>entries
</B>()
</PRE>
446 <DD>Returns a collection of all key-value pairs. Changes to the returned
447 collection will update the underlying multimap, and vice versa. The entries
448 collection does not support the
<code>add
</code> or
<code>addAll
</code> operations.
450 <p>The iterator generated by the returned collection traverses the values
451 for one key, followed by the values of a second key, and so on.
454 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#entries()">entries
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE><DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/SetMultimap.html#entries()">entries
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"interface in com.google.common.collect">SetMultimap
</A><K,V
></CODE></DL>
458 <DT><B>Returns:
</B><DD>collection of map entries consisting of key-value pairs
</DL>
463 <A NAME=
"removeAll(java.lang.Object)"><!-- --></A><H3>
466 public
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><V
> <B>removeAll
</B>(
<FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
467 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> key)
</PRE>
469 <DD><B>Description copied from interface:
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#removeAll(java.lang.Object)">Multimap
</A></CODE></B></DD>
470 <DD>Removes all values associated with a given key.
473 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#removeAll(java.lang.Object)">removeAll
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE><DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/SetMultimap.html#removeAll(java.lang.Object)">removeAll
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"interface in com.google.common.collect">SetMultimap
</A><K,V
></CODE></DL>
476 <DT><B>Parameters:
</B><DD><CODE>key
</CODE> - key of entries to remove from the multimap
477 <DT><B>Returns:
</B><DD>the collection of removed values, or an empty collection if no
478 values were associated with the provided key. The collection
479 <i>may
</i> be modifiable, but updating it will have no effect on the
485 <A NAME=
"replaceValues(java.lang.Object,java.lang.Iterable)"><!-- --></A><A NAME=
"replaceValues(K, java.lang.Iterable)"><!-- --></A><H3>
488 public
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><V
> <B>replaceValues
</B>(
<FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
490 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html" title=
"class or interface in java.lang">Iterable
</A><? extends V
> values)
</PRE>
492 <DD>Stores a collection of values with the same key, replacing any existing
495 <p>Any duplicates in
<code>values
</code> will be stored in the multimap once.
498 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#replaceValues(K, java.lang.Iterable)">replaceValues
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE><DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/SetMultimap.html#replaceValues(K, java.lang.Iterable)">replaceValues
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"interface in com.google.common.collect">SetMultimap
</A><K,V
></CODE></DL>
501 <DT><B>Parameters:
</B><DD><CODE>key
</CODE> - key to store in the multimap
<DD><CODE>values
</CODE> - values to store in the multimap
502 <DT><B>Returns:
</B><DD>the collection of replaced values, or an empty collection if no
503 values were previously associated with the key. The collection
504 <i>may
</i> be modifiable, but updating it will have no effect on the
510 <A NAME=
"put(java.lang.Object,java.lang.Object)"><!-- --></A><A NAME=
"put(K, V)"><!-- --></A><H3>
513 public boolean
<B>put
</B>(K
key,
516 <DD>Stores a key-value pair in the multimap.
519 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#put(K, V)">put
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
522 <DT><B>Parameters:
</B><DD><CODE>key
</CODE> - key to store in the multimap
<DD><CODE>value
</CODE> - value to store in the multimap
523 <DT><B>Returns:
</B><DD><code>true
</code> if the method increased the size of the multimap, or
524 <code>false
</code> if the multimap already contained the key-value pair
</DL>
529 <A NAME=
"equals(java.lang.Object)"><!-- --></A><H3>
532 public boolean
<B>equals
</B>(
<FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
533 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> obj)
</PRE>
535 <DD>Compares the specified object to this multimap for equality.
537 <p>Two
<code>SetMultimap
</code> instances are equal if, for each key, they
538 contain the same values. Equality does not depend on the ordering of keys
542 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#equals(java.lang.Object)">equals
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE><DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/SetMultimap.html#equals(java.lang.Object)">equals
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/SetMultimap.html" title=
"interface in com.google.common.collect">SetMultimap
</A><K,V
></CODE></DL>
545 <DT><B>Parameters:
</B><DD><CODE>obj
</CODE> - the reference object with which to compare.
546 <DT><B>Returns:
</B><DD><code>true
</code> if this object is the same as the obj
547 argument;
<code>false
</code> otherwise.
<DT><B>See Also:
</B><DD><A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode()" title=
"class or interface in java.lang"><CODE>Object.hashCode()
</CODE></A>,
548 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Hashtable.html" title=
"class or interface in java.util"><CODE>Hashtable
</CODE></A></DL>
553 <A NAME=
"setMap(java.util.Map)"><!-- --></A><H3>
556 protected void
<B>setMap
</B>(
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Map.html" title=
"class or interface in java.util">Map
</A><K,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Collection.html" title=
"class or interface in java.util">Collection
</A><V
>> map)
</PRE>
558 <DD>Used during deserialization only.
569 <A NAME=
"size()"><!-- --></A><H3>
572 public int
<B>size
</B>()
</PRE>
574 <DD><B>Description copied from interface:
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#size()">Multimap
</A></CODE></B></DD>
575 <DD>Returns the number of key-value pairs in the multimap.
578 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#size()">size
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
586 <A NAME=
"isEmpty()"><!-- --></A><H3>
589 public boolean
<B>isEmpty
</B>()
</PRE>
591 <DD><B>Description copied from interface:
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#isEmpty()">Multimap
</A></CODE></B></DD>
592 <DD>Returns
<code>true
</code> if the multimap contains no key-value pairs.
595 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#isEmpty()">isEmpty
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
603 <A NAME=
"containsKey(java.lang.Object)"><!-- --></A><H3>
606 public boolean
<B>containsKey
</B>(
<FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
607 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> key)
</PRE>
609 <DD><B>Description copied from interface:
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#containsKey(java.lang.Object)">Multimap
</A></CODE></B></DD>
610 <DD>Returns
<code>true
</code> if the multimap contains any values for the specified
614 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#containsKey(java.lang.Object)">containsKey
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
617 <DT><B>Parameters:
</B><DD><CODE>key
</CODE> - key to search for in multimap
</DL>
622 <A NAME=
"containsValue(java.lang.Object)"><!-- --></A><H3>
625 public boolean
<B>containsValue
</B>(
<FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
626 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> value)
</PRE>
628 <DD><B>Description copied from interface:
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#containsValue(java.lang.Object)">Multimap
</A></CODE></B></DD>
629 <DD>Returns
<code>true
</code> if the multimap contains the specified value for any
633 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#containsValue(java.lang.Object)">containsValue
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
636 <DT><B>Parameters:
</B><DD><CODE>value
</CODE> - value to search for in multimap
</DL>
641 <A NAME=
"containsEntry(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
644 public boolean
<B>containsEntry
</B>(
<FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
645 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> key,
646 <FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
647 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> value)
</PRE>
649 <DD><B>Description copied from interface:
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#containsEntry(java.lang.Object, java.lang.Object)">Multimap
</A></CODE></B></DD>
650 <DD>Returns
<code>true
</code> if the multimap contains the specified key-value pair.
653 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#containsEntry(java.lang.Object, java.lang.Object)">containsEntry
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
656 <DT><B>Parameters:
</B><DD><CODE>key
</CODE> - key to search for in multimap
<DD><CODE>value
</CODE> - value to search for in multimap
</DL>
661 <A NAME=
"remove(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
664 public boolean
<B>remove
</B>(
<FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
665 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> key,
666 <FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
667 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A> value)
</PRE>
669 <DD><B>Description copied from interface:
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#remove(java.lang.Object, java.lang.Object)">Multimap
</A></CODE></B></DD>
670 <DD>Removes a key-value pair from the multimap.
673 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#remove(java.lang.Object, java.lang.Object)">remove
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
676 <DT><B>Parameters:
</B><DD><CODE>key
</CODE> - key of entry to remove from the multimap
<DD><CODE>value
</CODE> - value of entry to remove the multimap
677 <DT><B>Returns:
</B><DD><code>true
</code> if the multimap changed
</DL>
682 <A NAME=
"putAll(java.lang.Object,java.lang.Iterable)"><!-- --></A><A NAME=
"putAll(K, java.lang.Iterable)"><!-- --></A><H3>
685 public boolean
<B>putAll
</B>(
<FONT SIZE=
"-1"><A HREF=
"../../../../com/google/common/base/Nullable.html" title=
"annotation in com.google.common.base">@Nullable
</A></FONT>
687 <A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html" title=
"class or interface in java.lang">Iterable
</A><? extends V
> values)
</PRE>
689 <DD><B>Description copied from interface:
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#putAll(K, java.lang.Iterable)">Multimap
</A></CODE></B></DD>
690 <DD>Stores a collection of values with the same key.
693 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#putAll(K, java.lang.Iterable)">putAll
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
696 <DT><B>Parameters:
</B><DD><CODE>key
</CODE> - key to store in the multimap
<DD><CODE>values
</CODE> - values to store in the multimap
697 <DT><B>Returns:
</B><DD><code>true
</code> if the multimap changed
</DL>
702 <A NAME=
"putAll(com.google.common.collect.Multimap)"><!-- --></A><H3>
705 public boolean
<B>putAll
</B>(
<A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><? extends K,? extends V
> multimap)
</PRE>
707 <DD><B>Description copied from interface:
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#putAll(com.google.common.collect.Multimap)">Multimap
</A></CODE></B></DD>
708 <DD>Copies all of another multimap's key-value pairs into this multimap. The
709 order in which the mappings are added is determined by
710 <code>multimap.entries()
</code>.
713 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#putAll(com.google.common.collect.Multimap)">putAll
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
716 <DT><B>Parameters:
</B><DD><CODE>multimap
</CODE> - mappings to store in this multimap
717 <DT><B>Returns:
</B><DD><code>true
</code> if the multimap changed
</DL>
722 <A NAME=
"clear()"><!-- --></A><H3>
725 public void
<B>clear
</B>()
</PRE>
727 <DD><B>Description copied from interface:
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#clear()">Multimap
</A></CODE></B></DD>
728 <DD>Removes all key-value pairs from the multimap.
731 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#clear()">clear
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
739 <A NAME=
"keySet()"><!-- --></A><H3>
742 public
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Set.html" title=
"class or interface in java.util">Set
</A><K
> <B>keySet
</B>()
</PRE>
744 <DD><B>Description copied from interface:
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#keySet()">Multimap
</A></CODE></B></DD>
745 <DD>Returns the set of all keys, each appearing once in the returned set.
746 Changes to the returned set will update the underlying multimap, and vice
750 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#keySet()">keySet
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
754 <DT><B>Returns:
</B><DD>the collection of distinct keys
</DL>
759 <A NAME=
"keys()"><!-- --></A><H3>
762 public
<A HREF=
"../../../../com/google/common/collect/Multiset.html" title=
"interface in com.google.common.collect">Multiset
</A><K
> <B>keys
</B>()
</PRE>
764 <DD><B>Description copied from interface:
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#keys()">Multimap
</A></CODE></B></DD>
765 <DD>Returns a collection, which may contain duplicates, of all keys. The number
766 of times of key appears in the returned multiset equals the number of
767 mappings the key has in the multimap. Changes to the returned multiset will
768 update the underlying multimap, and vice versa.
771 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#keys()">keys
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
775 <DT><B>Returns:
</B><DD>a multiset with keys corresponding to the distinct keys of the
776 multimap and frequencies corresponding to the number of values that
777 each key maps to
</DL>
782 <A NAME=
"values()"><!-- --></A><H3>
785 public
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Collection.html" title=
"class or interface in java.util">Collection
</A><V
> <B>values
</B>()
</PRE>
787 <DD>Returns a collection of all values in the multimap. Changes to the returned
788 collection will update the underlying multimap, and vice versa.
790 <p>The iterator generated by the returned collection traverses the values
791 for one key, followed by the values of a second key, and so on.
794 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#values()">values
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
798 <DT><B>Returns:
</B><DD>collection of values, which may include the same value multiple
799 times if it occurs in multiple mappings
</DL>
804 <A NAME=
"asMap()"><!-- --></A><H3>
807 public
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Map.html" title=
"class or interface in java.util">Map
</A><K,
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Collection.html" title=
"class or interface in java.util">Collection
</A><V
>> <B>asMap
</B>()
</PRE>
809 <DD><B>Description copied from interface:
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#asMap()">Multimap
</A></CODE></B></DD>
810 <DD>Returns a map view that associates each key with the corresponding values
811 in the multimap. Changes to the returned map, such as element removal,
812 will update the underlying multimap. The map does not support
813 <code>setValue()
</code> on its entries,
<code>put
</code>, or
<code>putAll
</code>.
815 <p>The collections returned by
<code>asMap().get(Object)
</code> have the same
816 behavior as those returned by
<A HREF=
"../../../../com/google/common/collect/Multimap.html#get(K)"><CODE>Multimap.get(K)
</CODE></A>.
819 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#asMap()">asMap
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE></DL>
823 <DT><B>Returns:
</B><DD>a map view from a key to its collection of values
</DL>
828 <A NAME=
"hashCode()"><!-- --></A><H3>
831 public int
<B>hashCode
</B>()
</PRE>
833 <DD>Returns the hash code for this multimap.
835 <p>The hash code of a multimap is defined as the hash code of the map view,
836 as returned by
<A HREF=
"../../../../com/google/common/collect/Multimap.html#asMap()"><CODE>Multimap.asMap()
</CODE></A>.
839 <DT><B>Specified by:
</B><DD><CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html#hashCode()">hashCode
</A></CODE> in interface
<CODE><A HREF=
"../../../../com/google/common/collect/Multimap.html" title=
"interface in com.google.common.collect">Multimap
</A><K,V
></CODE><DT><B>Overrides:
</B><DD><CODE><A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode()" title=
"class or interface in java.lang">hashCode
</A></CODE> in class
<CODE><A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A></CODE></DL>
843 <DT><B>Returns:
</B><DD>a hash code value for this object.
<DT><B>See Also:
</B><DD><A HREF=
"http://java.sun.com/javase/6/docs/api/java/util/Map.html#hashCode()" title=
"class or interface in java.util"><CODE>Map.hashCode()
</CODE></A></DL>
848 <A NAME=
"toString()"><!-- --></A><H3>
851 public
<A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/String.html" title=
"class or interface in java.lang">String
</A> <B>toString
</B>()
</PRE>
853 <DD>Returns a string representation of the multimap, generated by calling
854 <code>toString
</code> on the map returned by
<A HREF=
"../../../../com/google/common/collect/Multimap.html#asMap()"><CODE>Multimap.asMap()
</CODE></A>.
857 <DT><B>Overrides:
</B><DD><CODE><A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html#toString()" title=
"class or interface in java.lang">toString
</A></CODE> in class
<CODE><A HREF=
"http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title=
"class or interface in java.lang">Object
</A></CODE></DL>
861 <DT><B>Returns:
</B><DD>a string representation of the multimap
</DL>
864 <!-- ========= END OF CLASS DATA ========= -->
868 <!-- ======= START OF BOTTOM NAVBAR ====== -->
869 <A NAME=
"navbar_bottom"><!-- --></A>
870 <A HREF=
"#skip-navbar_bottom" title=
"Skip navigation links"></A>
871 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
873 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
874 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
875 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
876 <TR ALIGN=
"center" VALIGN=
"top">
877 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
878 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
879 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
880 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
881 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
882 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
883 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
887 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
893 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
894 <A HREF=
"../../../../com/google/common/collect/HashBiMap.html" title=
"class in com.google.common.collect"><B>PREV CLASS
</B></A>
895 <A HREF=
"../../../../com/google/common/collect/HashMultiset.html" title=
"class in com.google.common.collect"><B>NEXT CLASS
</B></A></FONT></TD>
896 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
897 <A HREF=
"../../../../index.html?com/google/common/collect/HashMultimap.html" target=
"_top"><B>FRAMES
</B></A>
898 <A HREF=
"HashMultimap.html" target=
"_top"><B>NO FRAMES
</B></A>
899 <SCRIPT type=
"text/javascript">
902 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
907 <A HREF=
"../../../../allclasses-noframe.html"><B>All Classes
</B></A>
914 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
915 SUMMARY:
NESTED
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
916 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
917 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
920 <A NAME=
"skip-navbar_bottom"></A>
921 <!-- ======== END OF BOTTOM NAVBAR ======= -->