1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2 <!--NewPage--> 3 <HTML> 4 <HEAD> 5 <!-- Generated by javadoc (build 1.6.0-google-internal) on Mon Jan 04 20:47:59 PST 2010 --> 6 <TITLE> 7 LinkedListMultimap (Guava Libraries 2010.01.04) 8 </TITLE> 9 10 <META NAME="date" CONTENT="2010-01-04"> 11 12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> 13 14 <SCRIPT type="text/javascript"> 15 function windowTitle() 16 { 17 if (location.href.indexOf('is-external=true') == -1) { 18 parent.document.title="LinkedListMultimap (Guava Libraries 2010.01.04)"; 19 } 20 } 21 </SCRIPT> 22 <NOSCRIPT> 23 </NOSCRIPT> 24 25 </HEAD> 26 27 <BODY BGCOLOR="white" onload="windowTitle();"> 28 <HR> 29 30 31 <!-- ========= START OF TOP NAVBAR ======= --> 32 <A NAME="navbar_top"><!-- --></A> 33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A> 34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 35 <TR> 36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 37 <A NAME="navbar_top_firstrow"><!-- --></A> 38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 39 <TR ALIGN="center" VALIGN="top"> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 42 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LinkedListMultimap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 48 </TR> 49 </TABLE> 50 </TD> 51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 52 </EM> 53 </TD> 54 </TR> 55 56 <TR> 57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 58 <A HREF="../../../../com/google/common/collect/LinkedHashMultiset.html" title="class in com.google.common.collect"><B>PREV CLASS</B></A> 59 <A HREF="../../../../com/google/common/collect/ListMultimap.html" title="interface in com.google.common.collect"><B>NEXT CLASS</B></A></FONT></TD> 60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 61 <A HREF="../../../../index.html?com/google/common/collect/LinkedListMultimap.html" target="_top"><B>FRAMES</B></A> 62 <A HREF="LinkedListMultimap.html" target="_top"><B>NO FRAMES</B></A> 63 <SCRIPT type="text/javascript"> 64 <!-- 65 if(window==top) { 66 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 67 } 68 //--> 69 </SCRIPT> 70 <NOSCRIPT> 71 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 72 </NOSCRIPT> 73 74 75 </FONT></TD> 76 </TR> 77 <TR> 78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 79 SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> 80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 81 DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> 82 </TR> 83 </TABLE> 84 <A NAME="skip-navbar_top"></A> 85 <!-- ========= END OF TOP NAVBAR ========= --> 86 87 <HR> 88 <!-- ======== START OF CLASS DATA ======== --> 89 <H2> 90 <FONT SIZE="-1"> 91 com.google.common.collect</FONT> 92 <BR> 93 Class LinkedListMultimap<K,V></H2> 94 <PRE> 95 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> 96 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.google.common.collect.LinkedListMultimap<K,V></B> 97 </PRE> 98 <DL> 99 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/google/common/collect/ListMultimap.html" title="interface in com.google.common.collect">ListMultimap</A><K,V>, <A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><K,V>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A></DD> 100 </DL> 101 <HR> 102 <DL> 103 <DT><PRE>public final class <B>LinkedListMultimap<K,V></B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../com/google/common/collect/ListMultimap.html" title="interface in com.google.common.collect">ListMultimap</A><K,V>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</A></DL> 104 </PRE> 105 106 <P> 107 An implementation of <code>ListMultimap</code> that supports deterministic 108 iteration order for both keys and values. The iteration order is preserved 109 across non-distinct key values. For example, for the following multimap 110 definition: <pre> <code>Multimap<K, V> multimap = LinkedListMultimap.create(); 111 multimap.put(key1, foo); 112 multimap.put(key2, bar); 113 multimap.put(key1, baz);</code></pre> 114 115 ... the iteration order for <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#keys()"><CODE>keys()</CODE></A> is <code>[key1, key2, key1]</code>, 116 and similarly for <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#entries()"><CODE>entries()</CODE></A>. Unlike <A HREF="../../../../com/google/common/collect/LinkedHashMultimap.html" title="class in com.google.common.collect"><CODE>LinkedHashMultimap</CODE></A>, the 117 iteration order is kept consistent between keys, entries and values. For 118 example, calling: <pre> <code>map.remove(key1, foo);</code></pre> 119 120 changes the entries iteration order to <code>[key2=bar, key1=baz]</code> and the 121 key iteration order to <code>[key2, key1]</code>. The <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#entries()"><CODE>entries()</CODE></A> iterator 122 returns mutable map entries, and <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#replaceValues(K, java.lang.Iterable)"><CODE>replaceValues(K, java.lang.Iterable<? extends V>)</CODE></A> attempts to preserve 123 iteration order as much as possible. 124 125 <p>The collections returned by <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#keySet"><CODE>keySet</CODE></A> and <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#asMap()"><CODE>asMap()</CODE></A> iterate 126 through the keys in the order they were first added to the multimap. 127 Similarly, <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#get(K)"><CODE>get(K)</CODE></A>, <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#removeAll(java.lang.Object)"><CODE>removeAll(java.lang.Object)</CODE></A>, and <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#replaceValues(K, java.lang.Iterable)"><CODE>replaceValues(K, java.lang.Iterable<? extends V>)</CODE></A> 128 return collections that iterate through the values in the order they were 129 added. The collections generated by <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#entries"><CODE>entries</CODE></A>, <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#keys"><CODE>keys</CODE></A>, and 130 <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#values()"><CODE>values()</CODE></A> iterate across the key-value mappings in the order they were 131 added to the multimap. 132 133 <p>Keys and values may be null. All optional multimap methods are supported, 134 and all returned views are modifiable. 135 136 <p>The methods <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#get(K)"><CODE>get(K)</CODE></A>, <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#keySet"><CODE>keySet</CODE></A>, <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#keys"><CODE>keys</CODE></A>, <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#values()"><CODE>values()</CODE></A>, 137 <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#entries"><CODE>entries</CODE></A>, and <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#asMap()"><CODE>asMap()</CODE></A> return collections that are views of the 138 multimap. If the multimap is modified while an iteration over any of those 139 collections is in progress, except through the iterator's own <code>remove</code> 140 operation, the results of the iteration are undefined. 141 142 <p>This class is not threadsafe when any concurrent operations update the 143 multimap. Concurrent read operations will work correctly. To allow concurrent 144 update operations, wrap your multimap with a call to <A HREF="../../../../com/google/common/collect/Multimaps.html#synchronizedListMultimap(com.google.common.collect.ListMultimap)"><CODE>Multimaps.synchronizedListMultimap(com.google.common.collect.ListMultimap<K, V>)</CODE></A>. 145 <P> 146 147 <P> 148 <DL> 149 <DT><B>Since:</B></DT> 150 <DD>2010.01.04 <b>stable</b> (imported from Google Collections Library)</DD> 151 <DT><B>Author:</B></DT> 152 <DD>Mike Bostock</DD> 153 <DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html#com.google.common.collect.LinkedListMultimap">Serialized Form</A></DL> 154 <HR> 155 156 <P> 157 158 <!-- ========== METHOD SUMMARY =========== --> 159 160 <A NAME="method_summary"><!-- --></A> 161 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 162 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 163 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 164 <B>Method Summary</B></FONT></TH> 165 </TR> 166 <TR BGCOLOR="white" CLASS="TableRowColor"> 167 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 168 <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>>></CODE></FONT></TD> 169 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#asMap()">asMap</A></B>()</CODE> 170 171 <BR> 172 Returns a map view that associates each key with the corresponding values 173 in the multimap.</TD> 174 </TR> 175 <TR BGCOLOR="white" CLASS="TableRowColor"> 176 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 177 <CODE> void</CODE></FONT></TD> 178 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#clear()">clear</A></B>()</CODE> 179 180 <BR> 181 Removes all key-value pairs from the multimap.</TD> 182 </TR> 183 <TR BGCOLOR="white" CLASS="TableRowColor"> 184 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 185 <CODE> boolean</CODE></FONT></TD> 186 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.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?is-external=true" title="class or interface in java.lang">Object</A> key, 187 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> value)</CODE> 188 189 <BR> 190 Returns <code>true</code> if the multimap contains the specified key-value pair.</TD> 191 </TR> 192 <TR BGCOLOR="white" CLASS="TableRowColor"> 193 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 194 <CODE> boolean</CODE></FONT></TD> 195 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#containsKey(java.lang.Object)">containsKey</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> key)</CODE> 196 197 <BR> 198 Returns <code>true</code> if the multimap contains any values for the specified 199 key.</TD> 200 </TR> 201 <TR BGCOLOR="white" CLASS="TableRowColor"> 202 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 203 <CODE> boolean</CODE></FONT></TD> 204 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#containsValue(java.lang.Object)">containsValue</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> value)</CODE> 205 206 <BR> 207 Returns <code>true</code> if the multimap contains the specified value for any 208 key.</TD> 209 </TR> 210 <TR BGCOLOR="white" CLASS="TableRowColor"> 211 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 212 <CODE>static 213 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 214 <TR ALIGN="right" VALIGN=""> 215 <TD NOWRAP><FONT SIZE="-1"> 216 <CODE><K,V> <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="class in com.google.common.collect">LinkedListMultimap</A><K,V></CODE></FONT></TD> 217 </TR> 218 </TABLE> 219 </CODE></FONT></TD> 220 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#create()">create</A></B>()</CODE> 221 222 <BR> 223 Creates a new, empty <code>LinkedListMultimap</code> with the default initial 224 capacity.</TD> 225 </TR> 226 <TR BGCOLOR="white" CLASS="TableRowColor"> 227 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 228 <CODE>static 229 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 230 <TR ALIGN="right" VALIGN=""> 231 <TD NOWRAP><FONT SIZE="-1"> 232 <CODE><K,V> <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="class in com.google.common.collect">LinkedListMultimap</A><K,V></CODE></FONT></TD> 233 </TR> 234 </TABLE> 235 </CODE></FONT></TD> 236 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#create(int)">create</A></B>(int expectedKeys)</CODE> 237 238 <BR> 239 Constructs an empty <code>LinkedListMultimap</code> with enough capacity to hold 240 the specified number of keys without rehashing.</TD> 241 </TR> 242 <TR BGCOLOR="white" CLASS="TableRowColor"> 243 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 244 <CODE>static 245 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 246 <TR ALIGN="right" VALIGN=""> 247 <TD NOWRAP><FONT SIZE="-1"> 248 <CODE><K,V> <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="class in com.google.common.collect">LinkedListMultimap</A><K,V></CODE></FONT></TD> 249 </TR> 250 </TABLE> 251 </CODE></FONT></TD> 252 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#create(com.google.common.collect.Multimap)">create</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> 253 254 <BR> 255 Constructs a <code>LinkedListMultimap</code> with the same mappings as the 256 specified <code>Multimap</code>.</TD> 257 </TR> 258 <TR BGCOLOR="white" CLASS="TableRowColor"> 259 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 260 <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>>></CODE></FONT></TD> 261 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#entries()">entries</A></B>()</CODE> 262 263 <BR> 264 Returns a collection of all key-value pairs.</TD> 265 </TR> 266 <TR BGCOLOR="white" CLASS="TableRowColor"> 267 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 268 <CODE> boolean</CODE></FONT></TD> 269 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> other)</CODE> 270 271 <BR> 272 Compares the specified object to this multimap for equality.</TD> 273 </TR> 274 <TR BGCOLOR="white" CLASS="TableRowColor"> 275 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 276 <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></FONT></TD> 277 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#get(K)">get</A></B>(<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A> key)</CODE> 278 279 <BR> 280 Returns a collection view of all values associated with a key.</TD> 281 </TR> 282 <TR BGCOLOR="white" CLASS="TableRowColor"> 283 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 284 <CODE> int</CODE></FONT></TD> 285 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#hashCode()">hashCode</A></B>()</CODE> 286 287 <BR> 288 Returns the hash code for this multimap.</TD> 289 </TR> 290 <TR BGCOLOR="white" CLASS="TableRowColor"> 291 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 292 <CODE> boolean</CODE></FONT></TD> 293 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#isEmpty()">isEmpty</A></B>()</CODE> 294 295 <BR> 296 Returns <code>true</code> if the multimap contains no key-value pairs.</TD> 297 </TR> 298 <TR BGCOLOR="white" CLASS="TableRowColor"> 299 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 300 <CODE> <A HREF="../../../../com/google/common/collect/Multiset.html" title="interface in com.google.common.collect">Multiset</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>></CODE></FONT></TD> 301 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#keys()">keys</A></B>()</CODE> 302 303 <BR> 304 Returns a collection, which may contain duplicates, of all keys.</TD> 305 </TR> 306 <TR BGCOLOR="white" CLASS="TableRowColor"> 307 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 308 <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>></CODE></FONT></TD> 309 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#keySet()">keySet</A></B>()</CODE> 310 311 <BR> 312 Returns the set of all keys, each appearing once in the returned set.</TD> 313 </TR> 314 <TR BGCOLOR="white" CLASS="TableRowColor"> 315 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 316 <CODE> boolean</CODE></FONT></TD> 317 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#put(K, V)">put</A></B>(<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A> key, 318 <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A> value)</CODE> 319 320 <BR> 321 Stores a key-value pair in the multimap.</TD> 322 </TR> 323 <TR BGCOLOR="white" CLASS="TableRowColor"> 324 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 325 <CODE> boolean</CODE></FONT></TD> 326 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#putAll(K, java.lang.Iterable)">putAll</A></B>(<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A> key, 327 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><? extends <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>> values)</CODE> 328 329 <BR> 330 Stores a collection of values with the same key.</TD> 331 </TR> 332 <TR BGCOLOR="white" CLASS="TableRowColor"> 333 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 334 <CODE> boolean</CODE></FONT></TD> 335 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.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 <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,? extends <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>> multimap)</CODE> 336 337 <BR> 338 Copies all of another multimap's key-value pairs into this multimap.</TD> 339 </TR> 340 <TR BGCOLOR="white" CLASS="TableRowColor"> 341 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 342 <CODE> boolean</CODE></FONT></TD> 343 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.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?is-external=true" title="class or interface in java.lang">Object</A> key, 344 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> value)</CODE> 345 346 <BR> 347 Removes a key-value pair from the multimap.</TD> 348 </TR> 349 <TR BGCOLOR="white" CLASS="TableRowColor"> 350 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 351 <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></FONT></TD> 352 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#removeAll(java.lang.Object)">removeAll</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> key)</CODE> 353 354 <BR> 355 Removes all values associated with a given key.</TD> 356 </TR> 357 <TR BGCOLOR="white" CLASS="TableRowColor"> 358 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 359 <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></FONT></TD> 360 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#replaceValues(K, java.lang.Iterable)">replaceValues</A></B>(<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A> key, 361 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><? extends <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>> values)</CODE> 362 363 <BR> 364 Stores a collection of values with the same key, replacing any existing 365 values for that key.</TD> 366 </TR> 367 <TR BGCOLOR="white" CLASS="TableRowColor"> 368 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 369 <CODE> int</CODE></FONT></TD> 370 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#size()">size</A></B>()</CODE> 371 372 <BR> 373 Returns the number of key-value pairs in the multimap.</TD> 374 </TR> 375 <TR BGCOLOR="white" CLASS="TableRowColor"> 376 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 377 <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> 378 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#toString()">toString</A></B>()</CODE> 379 380 <BR> 381 Returns a string representation of the multimap, generated by calling 382 <code>toString</code> on the map returned by <A HREF="../../../../com/google/common/collect/Multimap.html#asMap()"><CODE>Multimap.asMap()</CODE></A>.</TD> 383 </TR> 384 <TR BGCOLOR="white" CLASS="TableRowColor"> 385 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 386 <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></FONT></TD> 387 <TD><CODE><B><A HREF="../../../../com/google/common/collect/LinkedListMultimap.html#values()">values</A></B>()</CODE> 388 389 <BR> 390 Returns a collection of all values in the multimap.</TD> 391 </TR> 392 </TABLE> 393 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 394 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 395 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 396 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> 397 </TR> 398 <TR BGCOLOR="white" CLASS="TableRowColor"> 399 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#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?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> 400 </TR> 401 </TABLE> 402 403 <P> 404 405 <!-- ============ METHOD DETAIL ========== --> 406 407 <A NAME="method_detail"><!-- --></A> 408 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 409 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 410 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 411 <B>Method Detail</B></FONT></TH> 412 </TR> 413 </TABLE> 414 415 <A NAME="create()"><!-- --></A><H3> 416 create</H3> 417 <PRE> 418 public static <K,V> <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="class in com.google.common.collect">LinkedListMultimap</A><K,V> <B>create</B>()</PRE> 419 <DL> 420 <DD>Creates a new, empty <code>LinkedListMultimap</code> with the default initial 421 capacity. 422 <P> 423 <DD><DL> 424 </DL> 425 </DD> 426 <DD><DL> 427 </DL> 428 </DD> 429 </DL> 430 <HR> 431 432 <A NAME="create(int)"><!-- --></A><H3> 433 create</H3> 434 <PRE> 435 public static <K,V> <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="class in com.google.common.collect">LinkedListMultimap</A><K,V> <B>create</B>(int expectedKeys)</PRE> 436 <DL> 437 <DD>Constructs an empty <code>LinkedListMultimap</code> with enough capacity to hold 438 the specified number of keys without rehashing. 439 <P> 440 <DD><DL> 441 </DL> 442 </DD> 443 <DD><DL> 444 <DT><B>Parameters:</B><DD><CODE>expectedKeys</CODE> - the expected number of distinct keys 445 <DT><B>Throws:</B> 446 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if <code>expectedKeys</code> is negative</DL> 447 </DD> 448 </DL> 449 <HR> 450 451 <A NAME="create(com.google.common.collect.Multimap)"><!-- --></A><H3> 452 create</H3> 453 <PRE> 454 public static <K,V> <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="class in com.google.common.collect">LinkedListMultimap</A><K,V> <B>create</B>(<A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect">Multimap</A><? extends K,? extends V> multimap)</PRE> 455 <DL> 456 <DD>Constructs a <code>LinkedListMultimap</code> with the same mappings as the 457 specified <code>Multimap</code>. The new multimap has the same 458 <A HREF="../../../../com/google/common/collect/Multimap.html#entries()"><CODE>Multimap.entries()</CODE></A> iteration order as the input multimap. 459 <P> 460 <DD><DL> 461 </DL> 462 </DD> 463 <DD><DL> 464 <DT><B>Parameters:</B><DD><CODE>multimap</CODE> - the multimap whose contents are copied to this multimap</DL> 465 </DD> 466 </DL> 467 <HR> 468 469 <A NAME="size()"><!-- --></A><H3> 470 size</H3> 471 <PRE> 472 public int <B>size</B>()</PRE> 473 <DL> 474 <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/google/common/collect/Multimap.html#size()">Multimap</A></CODE></B></DD> 475 <DD>Returns the number of key-value pairs in the multimap. 476 <P> 477 <DD><DL> 478 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 479 </DD> 480 <DD><DL> 481 </DL> 482 </DD> 483 </DL> 484 <HR> 485 486 <A NAME="isEmpty()"><!-- --></A><H3> 487 isEmpty</H3> 488 <PRE> 489 public boolean <B>isEmpty</B>()</PRE> 490 <DL> 491 <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/google/common/collect/Multimap.html#isEmpty()">Multimap</A></CODE></B></DD> 492 <DD>Returns <code>true</code> if the multimap contains no key-value pairs. 493 <P> 494 <DD><DL> 495 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 496 </DD> 497 <DD><DL> 498 </DL> 499 </DD> 500 </DL> 501 <HR> 502 503 <A NAME="containsKey(java.lang.Object)"><!-- --></A><H3> 504 containsKey</H3> 505 <PRE> 506 public boolean <B>containsKey</B>(<FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT> 507 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> key)</PRE> 508 <DL> 509 <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/google/common/collect/Multimap.html#containsKey(java.lang.Object)">Multimap</A></CODE></B></DD> 510 <DD>Returns <code>true</code> if the multimap contains any values for the specified 511 key. 512 <P> 513 <DD><DL> 514 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 515 </DD> 516 <DD><DL> 517 <DT><B>Parameters:</B><DD><CODE>key</CODE> - key to search for in multimap</DL> 518 </DD> 519 </DL> 520 <HR> 521 522 <A NAME="containsValue(java.lang.Object)"><!-- --></A><H3> 523 containsValue</H3> 524 <PRE> 525 public boolean <B>containsValue</B>(<FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT> 526 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> value)</PRE> 527 <DL> 528 <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/google/common/collect/Multimap.html#containsValue(java.lang.Object)">Multimap</A></CODE></B></DD> 529 <DD>Returns <code>true</code> if the multimap contains the specified value for any 530 key. 531 <P> 532 <DD><DL> 533 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 534 </DD> 535 <DD><DL> 536 <DT><B>Parameters:</B><DD><CODE>value</CODE> - value to search for in multimap</DL> 537 </DD> 538 </DL> 539 <HR> 540 541 <A NAME="containsEntry(java.lang.Object, java.lang.Object)"><!-- --></A><H3> 542 containsEntry</H3> 543 <PRE> 544 public boolean <B>containsEntry</B>(<FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT> 545 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> key, 546 <FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT> 547 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> value)</PRE> 548 <DL> 549 <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> 550 <DD>Returns <code>true</code> if the multimap contains the specified key-value pair. 551 <P> 552 <DD><DL> 553 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 554 </DD> 555 <DD><DL> 556 <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> 557 </DD> 558 </DL> 559 <HR> 560 561 <A NAME="put(java.lang.Object,java.lang.Object)"><!-- --></A><A NAME="put(K, V)"><!-- --></A><H3> 562 put</H3> 563 <PRE> 564 public boolean <B>put</B>(<FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT> 565 <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A> key, 566 <FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT> 567 <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A> value)</PRE> 568 <DL> 569 <DD>Stores a key-value pair in the multimap. 570 <P> 571 <DD><DL> 572 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 573 </DD> 574 <DD><DL> 575 <DT><B>Parameters:</B><DD><CODE>key</CODE> - key to store in the multimap<DD><CODE>value</CODE> - value to store in the multimap 576 <DT><B>Returns:</B><DD><code>true</code> always</DL> 577 </DD> 578 </DL> 579 <HR> 580 581 <A NAME="remove(java.lang.Object, java.lang.Object)"><!-- --></A><H3> 582 remove</H3> 583 <PRE> 584 public boolean <B>remove</B>(<FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT> 585 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> key, 586 <FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT> 587 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> value)</PRE> 588 <DL> 589 <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> 590 <DD>Removes a key-value pair from the multimap. 591 <P> 592 <DD><DL> 593 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 594 </DD> 595 <DD><DL> 596 <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 597 <DT><B>Returns:</B><DD><code>true</code> if the multimap changed</DL> 598 </DD> 599 </DL> 600 <HR> 601 602 <A NAME="putAll(java.lang.Object,java.lang.Iterable)"><!-- --></A><A NAME="putAll(K, java.lang.Iterable)"><!-- --></A><H3> 603 putAll</H3> 604 <PRE> 605 public boolean <B>putAll</B>(<FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT> 606 <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A> key, 607 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><? extends <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>> values)</PRE> 608 <DL> 609 <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> 610 <DD>Stores a collection of values with the same key. 611 <P> 612 <DD><DL> 613 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 614 </DD> 615 <DD><DL> 616 <DT><B>Parameters:</B><DD><CODE>key</CODE> - key to store in the multimap<DD><CODE>values</CODE> - values to store in the multimap 617 <DT><B>Returns:</B><DD><code>true</code> if the multimap changed</DL> 618 </DD> 619 </DL> 620 <HR> 621 622 <A NAME="putAll(com.google.common.collect.Multimap)"><!-- --></A><H3> 623 putAll</H3> 624 <PRE> 625 public boolean <B>putAll</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/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,? extends <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>> multimap)</PRE> 626 <DL> 627 <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> 628 <DD>Copies all of another multimap's key-value pairs into this multimap. The 629 order in which the mappings are added is determined by 630 <code>multimap.entries()</code>. 631 <P> 632 <DD><DL> 633 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 634 </DD> 635 <DD><DL> 636 <DT><B>Parameters:</B><DD><CODE>multimap</CODE> - mappings to store in this multimap 637 <DT><B>Returns:</B><DD><code>true</code> if the multimap changed</DL> 638 </DD> 639 </DL> 640 <HR> 641 642 <A NAME="replaceValues(java.lang.Object,java.lang.Iterable)"><!-- --></A><A NAME="replaceValues(K, java.lang.Iterable)"><!-- --></A><H3> 643 replaceValues</H3> 644 <PRE> 645 public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>> <B>replaceValues</B>(<FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT> 646 <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A> key, 647 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><? extends <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>> values)</PRE> 648 <DL> 649 <DD>Stores a collection of values with the same key, replacing any existing 650 values for that key. 651 652 <p>Because the values for a given key may have duplicates and follow the 653 insertion ordering, this method returns a <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><CODE>List</CODE></A>, instead of the 654 <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><CODE>Collection</CODE></A> specified in the <A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect"><CODE>Multimap</CODE></A> interface. 655 656 <p>If any entries for the specified <code>key</code> already exist in the 657 multimap, their values are changed in-place without affecting the iteration 658 order. 659 660 <p>The returned list is immutable and implements 661 <A HREF="http://java.sun.com/javase/6/docs/api/java/util/RandomAccess.html?is-external=true" title="class or interface in java.util"><CODE>RandomAccess</CODE></A>. 662 <P> 663 <DD><DL> 664 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/common/collect/ListMultimap.html#replaceValues(K, java.lang.Iterable)">replaceValues</A></CODE> in interface <CODE><A HREF="../../../../com/google/common/collect/ListMultimap.html" title="interface in com.google.common.collect">ListMultimap</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE><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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 665 </DD> 666 <DD><DL> 667 <DT><B>Parameters:</B><DD><CODE>key</CODE> - key to store in the multimap<DD><CODE>values</CODE> - values to store in the multimap 668 <DT><B>Returns:</B><DD>the collection of replaced values, or an empty collection if no 669 values were previously associated with the key. The collection 670 <i>may</i> be modifiable, but updating it will have no effect on the 671 multimap.</DL> 672 </DD> 673 </DL> 674 <HR> 675 676 <A NAME="removeAll(java.lang.Object)"><!-- --></A><H3> 677 removeAll</H3> 678 <PRE> 679 public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>> <B>removeAll</B>(<FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT> 680 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> key)</PRE> 681 <DL> 682 <DD>Removes all values associated with a given key. 683 684 <p>Because the values for a given key may have duplicates and follow the 685 insertion ordering, this method returns a <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><CODE>List</CODE></A>, instead of the 686 <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><CODE>Collection</CODE></A> specified in the <A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect"><CODE>Multimap</CODE></A> interface. 687 688 <p>The returned list is immutable and implements 689 <A HREF="http://java.sun.com/javase/6/docs/api/java/util/RandomAccess.html?is-external=true" title="class or interface in java.util"><CODE>RandomAccess</CODE></A>. 690 <P> 691 <DD><DL> 692 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/common/collect/ListMultimap.html#removeAll(java.lang.Object)">removeAll</A></CODE> in interface <CODE><A HREF="../../../../com/google/common/collect/ListMultimap.html" title="interface in com.google.common.collect">ListMultimap</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE><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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 693 </DD> 694 <DD><DL> 695 <DT><B>Parameters:</B><DD><CODE>key</CODE> - key of entries to remove from the multimap 696 <DT><B>Returns:</B><DD>the collection of removed values, or an empty collection if no 697 values were associated with the provided key. The collection 698 <i>may</i> be modifiable, but updating it will have no effect on the 699 multimap.</DL> 700 </DD> 701 </DL> 702 <HR> 703 704 <A NAME="clear()"><!-- --></A><H3> 705 clear</H3> 706 <PRE> 707 public void <B>clear</B>()</PRE> 708 <DL> 709 <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/google/common/collect/Multimap.html#clear()">Multimap</A></CODE></B></DD> 710 <DD>Removes all key-value pairs from the multimap. 711 <P> 712 <DD><DL> 713 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 714 </DD> 715 <DD><DL> 716 </DL> 717 </DD> 718 </DL> 719 <HR> 720 721 <A NAME="get(java.lang.Object)"><!-- --></A><A NAME="get(K)"><!-- --></A><H3> 722 get</H3> 723 <PRE> 724 public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>> <B>get</B>(<FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT> 725 <A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A> key)</PRE> 726 <DL> 727 <DD>Returns a collection view of all values associated with a key. If no 728 mappings in the multimap have the provided key, an empty collection is 729 returned. 730 731 <p>Changes to the returned collection will update the underlying multimap, 732 and vice versa. 733 734 <p>Because the values for a given key may have duplicates and follow the 735 insertion ordering, this method returns a <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><CODE>List</CODE></A>, instead of the 736 <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><CODE>Collection</CODE></A> specified in the <A HREF="../../../../com/google/common/collect/Multimap.html" title="interface in com.google.common.collect"><CODE>Multimap</CODE></A> interface. 737 738 <p>If the multimap is modified while an iteration over the list is in 739 progress (except through the iterator's own <code>add</code>, <code>set</code> or 740 <code>remove</code> operations) the results of the iteration are undefined. 741 742 <p>The returned list is not serializable and does not have random access. 743 <P> 744 <DD><DL> 745 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/common/collect/ListMultimap.html#get(K)">get</A></CODE> in interface <CODE><A HREF="../../../../com/google/common/collect/ListMultimap.html" title="interface in com.google.common.collect">ListMultimap</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE><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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 746 </DD> 747 <DD><DL> 748 <DT><B>Parameters:</B><DD><CODE>key</CODE> - key to search for in multimap 749 <DT><B>Returns:</B><DD>the collection of values that the key maps to</DL> 750 </DD> 751 </DL> 752 <HR> 753 754 <A NAME="keySet()"><!-- --></A><H3> 755 keySet</H3> 756 <PRE> 757 public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>> <B>keySet</B>()</PRE> 758 <DL> 759 <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/google/common/collect/Multimap.html#keySet()">Multimap</A></CODE></B></DD> 760 <DD>Returns the set of all keys, each appearing once in the returned set. 761 Changes to the returned set will update the underlying multimap, and vice 762 versa. 763 <P> 764 <DD><DL> 765 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 766 </DD> 767 <DD><DL> 768 769 <DT><B>Returns:</B><DD>the collection of distinct keys</DL> 770 </DD> 771 </DL> 772 <HR> 773 774 <A NAME="keys()"><!-- --></A><H3> 775 keys</H3> 776 <PRE> 777 public <A HREF="../../../../com/google/common/collect/Multiset.html" title="interface in com.google.common.collect">Multiset</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>> <B>keys</B>()</PRE> 778 <DL> 779 <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/google/common/collect/Multimap.html#keys()">Multimap</A></CODE></B></DD> 780 <DD>Returns a collection, which may contain duplicates, of all keys. The number 781 of times of key appears in the returned multiset equals the number of 782 mappings the key has in the multimap. Changes to the returned multiset will 783 update the underlying multimap, and vice versa. 784 <P> 785 <DD><DL> 786 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 787 </DD> 788 <DD><DL> 789 790 <DT><B>Returns:</B><DD>a multiset with keys corresponding to the distinct keys of the 791 multimap and frequencies corresponding to the number of values that 792 each key maps to</DL> 793 </DD> 794 </DL> 795 <HR> 796 797 <A NAME="values()"><!-- --></A><H3> 798 values</H3> 799 <PRE> 800 public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>> <B>values</B>()</PRE> 801 <DL> 802 <DD>Returns a collection of all values in the multimap. Changes to the returned 803 collection will update the underlying multimap, and vice versa. 804 805 <p>The iterator generated by the returned collection traverses the values 806 in the order they were added to the multimap. 807 <P> 808 <DD><DL> 809 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 810 </DD> 811 <DD><DL> 812 813 <DT><B>Returns:</B><DD>collection of values, which may include the same value multiple 814 times if it occurs in multiple mappings</DL> 815 </DD> 816 </DL> 817 <HR> 818 819 <A NAME="entries()"><!-- --></A><H3> 820 entries</H3> 821 <PRE> 822 public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>>> <B>entries</B>()</PRE> 823 <DL> 824 <DD>Returns a collection of all key-value pairs. Changes to the returned 825 collection will update the underlying multimap, and vice versa. The entries 826 collection does not support the <code>add</code> or <code>addAll</code> operations. 827 828 <p>The iterator generated by the returned collection traverses the entries 829 in the order they were added to the multimap. 830 831 <p>An entry's <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true#getKey()" title="class or interface in java.util"><CODE>Map.Entry.getKey()</CODE></A> method always returns the same key, 832 regardless of what happens subsequently. As long as the corresponding 833 key-value mapping is not removed from the multimap, <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true#getValue()" title="class or interface in java.util"><CODE>Map.Entry.getValue()</CODE></A> 834 returns the value from the multimap, which may change over time, and <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true#setValue(V)" title="class or interface in java.util"><CODE>Map.Entry.setValue(V)</CODE></A> modifies that value. Removing the mapping from the 835 multimap does not alter the value returned by <code>getValue()</code>, though a 836 subsequent <code>setValue()</code> call won't update the multimap but will lead 837 to a revised value being returned by <code>getValue()</code>. 838 <P> 839 <DD><DL> 840 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 841 </DD> 842 <DD><DL> 843 844 <DT><B>Returns:</B><DD>collection of map entries consisting of key-value pairs</DL> 845 </DD> 846 </DL> 847 <HR> 848 849 <A NAME="asMap()"><!-- --></A><H3> 850 asMap</H3> 851 <PRE> 852 public <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>>> <B>asMap</B>()</PRE> 853 <DL> 854 <DD><B>Description copied from interface: <CODE><A HREF="../../../../com/google/common/collect/ListMultimap.html#asMap()">ListMultimap</A></CODE></B></DD> 855 <DD>Returns a map view that associates each key with the corresponding values 856 in the multimap. Changes to the returned map, such as element removal, 857 will update the underlying multimap. The map does not support 858 <code>setValue()</code> on its entries, <code>put</code>, or <code>putAll</code>. 859 860 <p>The collections returned by <code>asMap().get(Object)</code> have the same 861 behavior as those returned by <A HREF="../../../../com/google/common/collect/Multimap.html#get(K)"><CODE>Multimap.get(K)</CODE></A>. 862 863 <p>Though the method signature doesn't say so explicitly, the returned map 864 has <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util"><CODE>List</CODE></A> values. 865 <P> 866 <DD><DL> 867 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/common/collect/ListMultimap.html#asMap()">asMap</A></CODE> in interface <CODE><A HREF="../../../../com/google/common/collect/ListMultimap.html" title="interface in com.google.common.collect">ListMultimap</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE><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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE></DL> 868 </DD> 869 <DD><DL> 870 871 <DT><B>Returns:</B><DD>a map view from a key to its collection of values</DL> 872 </DD> 873 </DL> 874 <HR> 875 876 <A NAME="equals(java.lang.Object)"><!-- --></A><H3> 877 equals</H3> 878 <PRE> 879 public boolean <B>equals</B>(<FONT SIZE="-1"><A HREF="http://jsr-305.googlecode.com/svn/trunk/javadoc/javax/annotation/Nullable.html?is-external=true" title="class or interface in javax.annotation">@Nullable</A></FONT> 880 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> other)</PRE> 881 <DL> 882 <DD>Compares the specified object to this multimap for equality. 883 884 <p>Two <code>ListMultimap</code> instances are equal if, for each key, they 885 contain the same values in the same order. If the value orderings disagree, 886 the multimaps will not be considered equal. 887 <P> 888 <DD><DL> 889 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/google/common/collect/ListMultimap.html#equals(java.lang.Object)">equals</A></CODE> in interface <CODE><A HREF="../../../../com/google/common/collect/ListMultimap.html" title="interface in com.google.common.collect">ListMultimap</A><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE><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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> 890 </DD> 891 <DD><DL> 892 </DL> 893 </DD> 894 </DL> 895 <HR> 896 897 <A NAME="hashCode()"><!-- --></A><H3> 898 hashCode</H3> 899 <PRE> 900 public int <B>hashCode</B>()</PRE> 901 <DL> 902 <DD>Returns the hash code for this multimap. 903 904 <p>The hash code of a multimap is defined as the hash code of the map view, 905 as returned by <A HREF="../../../../com/google/common/collect/Multimap.html#asMap()"><CODE>Multimap.asMap()</CODE></A>. 906 <P> 907 <DD><DL> 908 <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><<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">K</A>,<A HREF="../../../../com/google/common/collect/LinkedListMultimap.html" title="type parameter in LinkedListMultimap">V</A>></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#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?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> 909 </DD> 910 <DD><DL> 911 </DL> 912 </DD> 913 </DL> 914 <HR> 915 916 <A NAME="toString()"><!-- --></A><H3> 917 toString</H3> 918 <PRE> 919 public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE> 920 <DL> 921 <DD>Returns a string representation of the multimap, generated by calling 922 <code>toString</code> on the map returned by <A HREF="../../../../com/google/common/collect/Multimap.html#asMap()"><CODE>Multimap.asMap()</CODE></A>. 923 <P> 924 <DD><DL> 925 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#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?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> 926 </DD> 927 <DD><DL> 928 929 <DT><B>Returns:</B><DD>a string representation of the multimap</DL> 930 </DD> 931 </DL> 932 <!-- ========= END OF CLASS DATA ========= --> 933 <HR> 934 935 936 <!-- ======= START OF BOTTOM NAVBAR ====== --> 937 <A NAME="navbar_bottom"><!-- --></A> 938 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 939 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 940 <TR> 941 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 942 <A NAME="navbar_bottom_firstrow"><!-- --></A> 943 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 944 <TR ALIGN="center" VALIGN="top"> 945 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 946 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 947 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 948 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/LinkedListMultimap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 949 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 950 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 951 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 952 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 953 </TR> 954 </TABLE> 955 </TD> 956 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 957 </EM> 958 </TD> 959 </TR> 960 961 <TR> 962 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 963 <A HREF="../../../../com/google/common/collect/LinkedHashMultiset.html" title="class in com.google.common.collect"><B>PREV CLASS</B></A> 964 <A HREF="../../../../com/google/common/collect/ListMultimap.html" title="interface in com.google.common.collect"><B>NEXT CLASS</B></A></FONT></TD> 965 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 966 <A HREF="../../../../index.html?com/google/common/collect/LinkedListMultimap.html" target="_top"><B>FRAMES</B></A> 967 <A HREF="LinkedListMultimap.html" target="_top"><B>NO FRAMES</B></A> 968 <SCRIPT type="text/javascript"> 969 <!-- 970 if(window==top) { 971 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 972 } 973 //--> 974 </SCRIPT> 975 <NOSCRIPT> 976 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 977 </NOSCRIPT> 978 979 980 </FONT></TD> 981 </TR> 982 <TR> 983 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 984 SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> 985 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 986 DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> 987 </TR> 988 </TABLE> 989 <A NAME="skip-navbar_bottom"></A> 990 <!-- ======== END OF BOTTOM NAVBAR ======= --> 991 992 <HR> 993 994 </BODY> 995 </HTML> 996