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:58 PST 2010 --> 6 <TITLE> 7 ImmutableMap (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="ImmutableMap (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/ImmutableMap.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/ImmutableListMultimap.Builder.html" title="class in com.google.common.collect"><B>PREV CLASS</B></A> 59 <A HREF="../../../../com/google/common/collect/ImmutableMap.Builder.html" title="class 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/ImmutableMap.html" target="_top"><B>FRAMES</B></A> 62 <A HREF="ImmutableMap.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: <A HREF="#nested_class_summary">NESTED</A> | 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 ImmutableMap<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.ImmutableMap<K,V></B> 97 </PRE> 98 <DL> 99 <DT><B>All Implemented Interfaces:</B> <DD><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>, <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><K,V></DD> 100 </DL> 101 <DL> 102 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/google/common/collect/ImmutableBiMap.html" title="class in com.google.common.collect">ImmutableBiMap</A>, <A HREF="../../../../com/google/common/collect/ImmutableSortedMap.html" title="class in com.google.common.collect">ImmutableSortedMap</A></DD> 103 </DL> 104 <HR> 105 <DL> 106 <DT><PRE>public abstract class <B>ImmutableMap<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="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</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> 107 </PRE> 108 109 <P> 110 An immutable, hash-based <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><CODE>Map</CODE></A> with reliable user-specified iteration 111 order. Does not permit null keys or values. 112 113 <p>Unlike <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collections.html?is-external=true#unmodifiableMap(java.util.Map)" title="class or interface in java.util"><CODE>Collections.unmodifiableMap(java.util.Map<? extends K, ? extends V>)</CODE></A>, which is a <i>view</i> of a 114 separate map which can still change, an instance of <code>ImmutableMap</code> 115 contains its own data and will <i>never</i> change. <code>ImmutableMap</code> is 116 convenient for <code>public static final</code> maps ("constant maps") and also 117 lets you easily make a "defensive copy" of a map provided to your class by a 118 caller. 119 120 <p><b>Note</b>: Although this class is not final, it cannot be subclassed as 121 it has no public or protected constructors. Thus, instances of this class are 122 guaranteed to be immutable. 123 <P> 124 125 <P> 126 <DL> 127 <DT><B>Since:</B></DT> 128 <DD>2010.01.04 <b>stable</b> (imported from Google Collections Library)</DD> 129 <DT><B>Author:</B></DT> 130 <DD>Jesse Wilson, Kevin Bourrillion</DD> 131 <DT><B>See Also:</B><DD><A HREF="../../../../com/google/common/collect/ImmutableList.html" title="class in com.google.common.collect"><CODE>ImmutableList</CODE></A>, 132 <A HREF="../../../../com/google/common/collect/ImmutableSet.html" title="class in com.google.common.collect"><CODE>ImmutableSet</CODE></A>, 133 <A HREF="../../../../serialized-form.html#com.google.common.collect.ImmutableMap">Serialized Form</A></DL> 134 <HR> 135 136 <P> 137 <!-- ======== NESTED CLASS SUMMARY ======== --> 138 139 <A NAME="nested_class_summary"><!-- --></A> 140 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 141 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 142 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 143 <B>Nested Class Summary</B></FONT></TH> 144 </TR> 145 <TR BGCOLOR="white" CLASS="TableRowColor"> 146 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 147 <CODE>static class</CODE></FONT></TD> 148 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.Builder.html" title="class in com.google.common.collect">ImmutableMap.Builder</A><<A HREF="../../../../com/google/common/collect/ImmutableMap.Builder.html" title="type parameter in ImmutableMap.Builder">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.Builder.html" title="type parameter in ImmutableMap.Builder">V</A>></B></CODE> 149 150 <BR> 151 A builder for creating immutable map instances, especially <code>public 152 static final</code> maps ("constant maps").</TD> 153 </TR> 154 </TABLE> 155 <A NAME="nested_classes_inherited_from_class_java.util.Map"><!-- --></A> 156 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 157 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 158 <TH ALIGN="left"><B>Nested classes/interfaces inherited from interface java.util.<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></B></TH> 159 </TR> 160 <TR BGCOLOR="white" CLASS="TableRowColor"> 161 <TD><CODE><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="http://java.sun.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">K</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">V</A>></CODE></TD> 162 </TR> 163 </TABLE> 164 165 166 <!-- ========== METHOD SUMMARY =========== --> 167 168 <A NAME="method_summary"><!-- --></A> 169 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 170 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 171 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 172 <B>Method Summary</B></FONT></TH> 173 </TR> 174 <TR BGCOLOR="white" CLASS="TableRowColor"> 175 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 176 <CODE>static 177 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 178 <TR ALIGN="right" VALIGN=""> 179 <TD NOWRAP><FONT SIZE="-1"> 180 <CODE><K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.Builder.html" title="class in com.google.common.collect">ImmutableMap.Builder</A><K,V></CODE></FONT></TD> 181 </TR> 182 </TABLE> 183 </CODE></FONT></TD> 184 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#builder()">builder</A></B>()</CODE> 185 186 <BR> 187 Returns a new builder.</TD> 188 </TR> 189 <TR BGCOLOR="white" CLASS="TableRowColor"> 190 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 191 <CODE> void</CODE></FONT></TD> 192 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#clear()">clear</A></B>()</CODE> 193 194 <BR> 195 Guaranteed to throw an exception and leave the map unmodified.</TD> 196 </TR> 197 <TR BGCOLOR="white" CLASS="TableRowColor"> 198 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 199 <CODE> boolean</CODE></FONT></TD> 200 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.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> 201 202 <BR> 203 </TD> 204 </TR> 205 <TR BGCOLOR="white" CLASS="TableRowColor"> 206 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 207 <CODE>abstract boolean</CODE></FONT></TD> 208 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.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> 209 210 <BR> 211 </TD> 212 </TR> 213 <TR BGCOLOR="white" CLASS="TableRowColor"> 214 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 215 <CODE>static 216 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 217 <TR ALIGN="right" VALIGN=""> 218 <TD NOWRAP><FONT SIZE="-1"> 219 <CODE><K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V></CODE></FONT></TD> 220 </TR> 221 </TABLE> 222 </CODE></FONT></TD> 223 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#copyOf(java.util.Map)">copyOf</A></B>(<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><? extends K,? extends V> map)</CODE> 224 225 <BR> 226 Returns an immutable map containing the same entries as <code>map</code>.</TD> 227 </TR> 228 <TR BGCOLOR="white" CLASS="TableRowColor"> 229 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 230 <CODE>abstract <A HREF="../../../../com/google/common/collect/ImmutableSet.html" title="class in com.google.common.collect">ImmutableSet</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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>>></CODE></FONT></TD> 231 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#entrySet()">entrySet</A></B>()</CODE> 232 233 <BR> 234 Returns an immutable set of the mappings in this map.</TD> 235 </TR> 236 <TR BGCOLOR="white" CLASS="TableRowColor"> 237 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 238 <CODE> boolean</CODE></FONT></TD> 239 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.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> object)</CODE> 240 241 <BR> 242 </TD> 243 </TR> 244 <TR BGCOLOR="white" CLASS="TableRowColor"> 245 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 246 <CODE>abstract <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A></CODE></FONT></TD> 247 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#get(java.lang.Object)">get</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> 248 249 <BR> 250 </TD> 251 </TR> 252 <TR BGCOLOR="white" CLASS="TableRowColor"> 253 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 254 <CODE> int</CODE></FONT></TD> 255 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#hashCode()">hashCode</A></B>()</CODE> 256 257 <BR> 258 </TD> 259 </TR> 260 <TR BGCOLOR="white" CLASS="TableRowColor"> 261 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 262 <CODE> boolean</CODE></FONT></TD> 263 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#isEmpty()">isEmpty</A></B>()</CODE> 264 265 <BR> 266 </TD> 267 </TR> 268 <TR BGCOLOR="white" CLASS="TableRowColor"> 269 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 270 <CODE>abstract <A HREF="../../../../com/google/common/collect/ImmutableSet.html" title="class in com.google.common.collect">ImmutableSet</A><<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>></CODE></FONT></TD> 271 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#keySet()">keySet</A></B>()</CODE> 272 273 <BR> 274 Returns an immutable set of the keys in this map.</TD> 275 </TR> 276 <TR BGCOLOR="white" CLASS="TableRowColor"> 277 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 278 <CODE>static 279 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 280 <TR ALIGN="right" VALIGN=""> 281 <TD NOWRAP><FONT SIZE="-1"> 282 <CODE><K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V></CODE></FONT></TD> 283 </TR> 284 </TABLE> 285 </CODE></FONT></TD> 286 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#of()">of</A></B>()</CODE> 287 288 <BR> 289 Returns the empty map.</TD> 290 </TR> 291 <TR BGCOLOR="white" CLASS="TableRowColor"> 292 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 293 <CODE>static 294 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 295 <TR ALIGN="right" VALIGN=""> 296 <TD NOWRAP><FONT SIZE="-1"> 297 <CODE><K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V></CODE></FONT></TD> 298 </TR> 299 </TABLE> 300 </CODE></FONT></TD> 301 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#of(K, V)">of</A></B>(K k1, 302 V v1)</CODE> 303 304 <BR> 305 Returns an immutable map containing a single entry.</TD> 306 </TR> 307 <TR BGCOLOR="white" CLASS="TableRowColor"> 308 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 309 <CODE>static 310 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 311 <TR ALIGN="right" VALIGN=""> 312 <TD NOWRAP><FONT SIZE="-1"> 313 <CODE><K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V></CODE></FONT></TD> 314 </TR> 315 </TABLE> 316 </CODE></FONT></TD> 317 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#of(K, V, K, V)">of</A></B>(K k1, 318 V v1, 319 K k2, 320 V v2)</CODE> 321 322 <BR> 323 Returns an immutable map containing the given entries, in order.</TD> 324 </TR> 325 <TR BGCOLOR="white" CLASS="TableRowColor"> 326 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 327 <CODE>static 328 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 329 <TR ALIGN="right" VALIGN=""> 330 <TD NOWRAP><FONT SIZE="-1"> 331 <CODE><K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V></CODE></FONT></TD> 332 </TR> 333 </TABLE> 334 </CODE></FONT></TD> 335 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#of(K, V, K, V, K, V)">of</A></B>(K k1, 336 V v1, 337 K k2, 338 V v2, 339 K k3, 340 V v3)</CODE> 341 342 <BR> 343 Returns an immutable map containing the given entries, in order.</TD> 344 </TR> 345 <TR BGCOLOR="white" CLASS="TableRowColor"> 346 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 347 <CODE>static 348 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 349 <TR ALIGN="right" VALIGN=""> 350 <TD NOWRAP><FONT SIZE="-1"> 351 <CODE><K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V></CODE></FONT></TD> 352 </TR> 353 </TABLE> 354 </CODE></FONT></TD> 355 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#of(K, V, K, V, K, V, K, V)">of</A></B>(K k1, 356 V v1, 357 K k2, 358 V v2, 359 K k3, 360 V v3, 361 K k4, 362 V v4)</CODE> 363 364 <BR> 365 Returns an immutable map containing the given entries, in order.</TD> 366 </TR> 367 <TR BGCOLOR="white" CLASS="TableRowColor"> 368 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 369 <CODE>static 370 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 371 <TR ALIGN="right" VALIGN=""> 372 <TD NOWRAP><FONT SIZE="-1"> 373 <CODE><K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V></CODE></FONT></TD> 374 </TR> 375 </TABLE> 376 </CODE></FONT></TD> 377 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#of(K, V, K, V, K, V, K, V, K, V)">of</A></B>(K k1, 378 V v1, 379 K k2, 380 V v2, 381 K k3, 382 V v3, 383 K k4, 384 V v4, 385 K k5, 386 V v5)</CODE> 387 388 <BR> 389 Returns an immutable map containing the given entries, in order.</TD> 390 </TR> 391 <TR BGCOLOR="white" CLASS="TableRowColor"> 392 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 393 <CODE> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A></CODE></FONT></TD> 394 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#put(K, V)">put</A></B>(<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">K</A> k, 395 <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A> v)</CODE> 396 397 <BR> 398 Guaranteed to throw an exception and leave the map unmodified.</TD> 399 </TR> 400 <TR BGCOLOR="white" CLASS="TableRowColor"> 401 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 402 <CODE> void</CODE></FONT></TD> 403 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#putAll(java.util.Map)">putAll</A></B>(<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><? extends <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,? extends <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>> map)</CODE> 404 405 <BR> 406 Guaranteed to throw an exception and leave the map unmodified.</TD> 407 </TR> 408 <TR BGCOLOR="white" CLASS="TableRowColor"> 409 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 410 <CODE> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A></CODE></FONT></TD> 411 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#remove(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> o)</CODE> 412 413 <BR> 414 Guaranteed to throw an exception and leave the map unmodified.</TD> 415 </TR> 416 <TR BGCOLOR="white" CLASS="TableRowColor"> 417 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 418 <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> 419 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#toString()">toString</A></B>()</CODE> 420 421 <BR> 422 </TD> 423 </TR> 424 <TR BGCOLOR="white" CLASS="TableRowColor"> 425 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 426 <CODE>abstract <A HREF="../../../../com/google/common/collect/ImmutableCollection.html" title="class in com.google.common.collect">ImmutableCollection</A><<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>></CODE></FONT></TD> 427 <TD><CODE><B><A HREF="../../../../com/google/common/collect/ImmutableMap.html#values()">values</A></B>()</CODE> 428 429 <BR> 430 Returns an immutable collection of the values in this map.</TD> 431 </TR> 432 </TABLE> 433 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 434 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 435 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 436 <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> 437 </TR> 438 <TR BGCOLOR="white" CLASS="TableRowColor"> 439 <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> 440 </TR> 441 </TABLE> 442 <A NAME="methods_inherited_from_class_java.util.Map"><!-- --></A> 443 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 444 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 445 <TH ALIGN="left"><B>Methods inherited from interface java.util.<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></B></TH> 446 </TR> 447 <TR BGCOLOR="white" CLASS="TableRowColor"> 448 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#size()" title="class or interface in java.util">size</A></CODE></TD> 449 </TR> 450 </TABLE> 451 452 <P> 453 454 <!-- ============ METHOD DETAIL ========== --> 455 456 <A NAME="method_detail"><!-- --></A> 457 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 458 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 459 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 460 <B>Method Detail</B></FONT></TH> 461 </TR> 462 </TABLE> 463 464 <A NAME="of()"><!-- --></A><H3> 465 of</H3> 466 <PRE> 467 public static <K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V> <B>of</B>()</PRE> 468 <DL> 469 <DD>Returns the empty map. This map behaves and performs comparably to 470 <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collections.html?is-external=true#emptyMap()" title="class or interface in java.util"><CODE>Collections.emptyMap()</CODE></A>, and is preferable mainly for consistency 471 and maintainability of your code. 472 <P> 473 <DD><DL> 474 </DL> 475 </DD> 476 <DD><DL> 477 </DL> 478 </DD> 479 </DL> 480 <HR> 481 482 <A NAME="of(java.lang.Object,java.lang.Object)"><!-- --></A><A NAME="of(K, V)"><!-- --></A><H3> 483 of</H3> 484 <PRE> 485 public static <K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V> <B>of</B>(K k1, 486 V v1)</PRE> 487 <DL> 488 <DD>Returns an immutable map containing a single entry. This map behaves and 489 performs comparably to <A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collections.html?is-external=true#singletonMap(K, V)" title="class or interface in java.util"><CODE>Collections.singletonMap(K, V)</CODE></A> but will not accept 490 a null key or value. It is preferable mainly for consistency and 491 maintainability of your code. 492 <P> 493 <DD><DL> 494 </DL> 495 </DD> 496 <DD><DL> 497 </DL> 498 </DD> 499 </DL> 500 <HR> 501 502 <A NAME="of(java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object)"><!-- --></A><A NAME="of(K, V, K, V)"><!-- --></A><H3> 503 of</H3> 504 <PRE> 505 public static <K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V> <B>of</B>(K k1, 506 V v1, 507 K k2, 508 V v2)</PRE> 509 <DL> 510 <DD>Returns an immutable map containing the given entries, in order. 511 <P> 512 <DD><DL> 513 </DL> 514 </DD> 515 <DD><DL> 516 517 <DT><B>Throws:</B> 518 <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 duplicate keys are provided</DL> 519 </DD> 520 </DL> 521 <HR> 522 523 <A NAME="of(java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object)"><!-- --></A><A NAME="of(K, V, K, V, K, V)"><!-- --></A><H3> 524 of</H3> 525 <PRE> 526 public static <K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V> <B>of</B>(K k1, 527 V v1, 528 K k2, 529 V v2, 530 K k3, 531 V v3)</PRE> 532 <DL> 533 <DD>Returns an immutable map containing the given entries, in order. 534 <P> 535 <DD><DL> 536 </DL> 537 </DD> 538 <DD><DL> 539 540 <DT><B>Throws:</B> 541 <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 duplicate keys are provided</DL> 542 </DD> 543 </DL> 544 <HR> 545 546 <A NAME="of(java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object)"><!-- --></A><A NAME="of(K, V, K, V, K, V, K, V)"><!-- --></A><H3> 547 of</H3> 548 <PRE> 549 public static <K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V> <B>of</B>(K k1, 550 V v1, 551 K k2, 552 V v2, 553 K k3, 554 V v3, 555 K k4, 556 V v4)</PRE> 557 <DL> 558 <DD>Returns an immutable map containing the given entries, in order. 559 <P> 560 <DD><DL> 561 </DL> 562 </DD> 563 <DD><DL> 564 565 <DT><B>Throws:</B> 566 <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 duplicate keys are provided</DL> 567 </DD> 568 </DL> 569 <HR> 570 571 <A NAME="of(java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object)"><!-- --></A><A NAME="of(K, V, K, V, K, V, K, V, K, V)"><!-- --></A><H3> 572 of</H3> 573 <PRE> 574 public static <K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V> <B>of</B>(K k1, 575 V v1, 576 K k2, 577 V v2, 578 K k3, 579 V v3, 580 K k4, 581 V v4, 582 K k5, 583 V v5)</PRE> 584 <DL> 585 <DD>Returns an immutable map containing the given entries, in order. 586 <P> 587 <DD><DL> 588 </DL> 589 </DD> 590 <DD><DL> 591 592 <DT><B>Throws:</B> 593 <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 duplicate keys are provided</DL> 594 </DD> 595 </DL> 596 <HR> 597 598 <A NAME="builder()"><!-- --></A><H3> 599 builder</H3> 600 <PRE> 601 public static <K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.Builder.html" title="class in com.google.common.collect">ImmutableMap.Builder</A><K,V> <B>builder</B>()</PRE> 602 <DL> 603 <DD>Returns a new builder. The generated builder is equivalent to the builder 604 created by the <A HREF="../../../../com/google/common/collect/ImmutableMap.Builder.html" title="class in com.google.common.collect"><CODE>ImmutableMap.Builder</CODE></A> constructor. 605 <P> 606 <DD><DL> 607 </DL> 608 </DD> 609 <DD><DL> 610 </DL> 611 </DD> 612 </DL> 613 <HR> 614 615 <A NAME="copyOf(java.util.Map)"><!-- --></A><H3> 616 copyOf</H3> 617 <PRE> 618 public static <K,V> <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V> <B>copyOf</B>(<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><? extends K,? extends V> map)</PRE> 619 <DL> 620 <DD>Returns an immutable map containing the same entries as <code>map</code>. If 621 <code>map</code> somehow contains entries with duplicate keys (for example, if 622 it is a <code>SortedMap</code> whose comparator is not <i>consistent with 623 equals</i>), the results of this method are undefined. 624 625 <p><b>Note:</b> Despite what the method name suggests, if <code>map</code> is an 626 <code>ImmutableMap</code>, no copy will actually be performed, and the given map 627 itself will be returned. 628 <P> 629 <DD><DL> 630 </DL> 631 </DD> 632 <DD><DL> 633 634 <DT><B>Throws:</B> 635 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</A></CODE> - if any key or value in <code>map</code> is null</DL> 636 </DD> 637 </DL> 638 <HR> 639 640 <A NAME="put(java.lang.Object,java.lang.Object)"><!-- --></A><A NAME="put(K, V)"><!-- --></A><H3> 641 put</H3> 642 <PRE> 643 public final <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A> <B>put</B>(<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">K</A> k, 644 <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A> v)</PRE> 645 <DL> 646 <DD>Guaranteed to throw an exception and leave the map unmodified. 647 <P> 648 <DD><DL> 649 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#put(K, V)" title="class or interface in java.util">put</A></CODE> in interface <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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>></CODE></DL> 650 </DD> 651 <DD><DL> 652 653 <DT><B>Throws:</B> 654 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</A></CODE> - always</DL> 655 </DD> 656 </DL> 657 <HR> 658 659 <A NAME="remove(java.lang.Object)"><!-- --></A><H3> 660 remove</H3> 661 <PRE> 662 public final <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A> <B>remove</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> o)</PRE> 663 <DL> 664 <DD>Guaranteed to throw an exception and leave the map unmodified. 665 <P> 666 <DD><DL> 667 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#remove(java.lang.Object)" title="class or interface in java.util">remove</A></CODE> in interface <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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>></CODE></DL> 668 </DD> 669 <DD><DL> 670 671 <DT><B>Throws:</B> 672 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</A></CODE> - always</DL> 673 </DD> 674 </DL> 675 <HR> 676 677 <A NAME="putAll(java.util.Map)"><!-- --></A><H3> 678 putAll</H3> 679 <PRE> 680 public final void <B>putAll</B>(<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><? extends <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,? extends <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>> map)</PRE> 681 <DL> 682 <DD>Guaranteed to throw an exception and leave the map unmodified. 683 <P> 684 <DD><DL> 685 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#putAll(java.util.Map)" title="class or interface in java.util">putAll</A></CODE> in interface <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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>></CODE></DL> 686 </DD> 687 <DD><DL> 688 689 <DT><B>Throws:</B> 690 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</A></CODE> - always</DL> 691 </DD> 692 </DL> 693 <HR> 694 695 <A NAME="clear()"><!-- --></A><H3> 696 clear</H3> 697 <PRE> 698 public final void <B>clear</B>()</PRE> 699 <DL> 700 <DD>Guaranteed to throw an exception and leave the map unmodified. 701 <P> 702 <DD><DL> 703 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#clear()" title="class or interface in java.util">clear</A></CODE> in interface <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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>></CODE></DL> 704 </DD> 705 <DD><DL> 706 707 <DT><B>Throws:</B> 708 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang">UnsupportedOperationException</A></CODE> - always</DL> 709 </DD> 710 </DL> 711 <HR> 712 713 <A NAME="isEmpty()"><!-- --></A><H3> 714 isEmpty</H3> 715 <PRE> 716 public boolean <B>isEmpty</B>()</PRE> 717 <DL> 718 <DD><DL> 719 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#isEmpty()" title="class or interface in java.util">isEmpty</A></CODE> in interface <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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>></CODE></DL> 720 </DD> 721 <DD><DL> 722 </DL> 723 </DD> 724 </DL> 725 <HR> 726 727 <A NAME="containsKey(java.lang.Object)"><!-- --></A><H3> 728 containsKey</H3> 729 <PRE> 730 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> 731 <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> 732 <DL> 733 <DD><DL> 734 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#containsKey(java.lang.Object)" title="class or interface in java.util">containsKey</A></CODE> in interface <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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>></CODE></DL> 735 </DD> 736 <DD><DL> 737 </DL> 738 </DD> 739 </DL> 740 <HR> 741 742 <A NAME="containsValue(java.lang.Object)"><!-- --></A><H3> 743 containsValue</H3> 744 <PRE> 745 public abstract 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> 746 <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> 747 <DL> 748 <DD><DL> 749 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#containsValue(java.lang.Object)" title="class or interface in java.util">containsValue</A></CODE> in interface <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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>></CODE></DL> 750 </DD> 751 <DD><DL> 752 </DL> 753 </DD> 754 </DL> 755 <HR> 756 757 <A NAME="get(java.lang.Object)"><!-- --></A><H3> 758 get</H3> 759 <PRE> 760 public abstract <A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">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> 761 <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> 762 <DL> 763 <DD><DL> 764 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#get(java.lang.Object)" title="class or interface in java.util">get</A></CODE> in interface <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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>></CODE></DL> 765 </DD> 766 <DD><DL> 767 </DL> 768 </DD> 769 </DL> 770 <HR> 771 772 <A NAME="entrySet()"><!-- --></A><H3> 773 entrySet</H3> 774 <PRE> 775 public abstract <A HREF="../../../../com/google/common/collect/ImmutableSet.html" title="class in com.google.common.collect">ImmutableSet</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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>>> <B>entrySet</B>()</PRE> 776 <DL> 777 <DD>Returns an immutable set of the mappings in this map. The entries are in 778 the same order as the parameters used to build this map. 779 <P> 780 <DD><DL> 781 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#entrySet()" title="class or interface in java.util">entrySet</A></CODE> in interface <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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>></CODE></DL> 782 </DD> 783 <DD><DL> 784 </DL> 785 </DD> 786 </DL> 787 <HR> 788 789 <A NAME="keySet()"><!-- --></A><H3> 790 keySet</H3> 791 <PRE> 792 public abstract <A HREF="../../../../com/google/common/collect/ImmutableSet.html" title="class in com.google.common.collect">ImmutableSet</A><<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>> <B>keySet</B>()</PRE> 793 <DL> 794 <DD>Returns an immutable set of the keys in this map. These keys are in 795 the same order as the parameters used to build this map. 796 <P> 797 <DD><DL> 798 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#keySet()" title="class or interface in java.util">keySet</A></CODE> in interface <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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>></CODE></DL> 799 </DD> 800 <DD><DL> 801 </DL> 802 </DD> 803 </DL> 804 <HR> 805 806 <A NAME="values()"><!-- --></A><H3> 807 values</H3> 808 <PRE> 809 public abstract <A HREF="../../../../com/google/common/collect/ImmutableCollection.html" title="class in com.google.common.collect">ImmutableCollection</A><<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>> <B>values</B>()</PRE> 810 <DL> 811 <DD>Returns an immutable collection of the values in this map. The values are 812 in the same order as the parameters used to build this map. 813 <P> 814 <DD><DL> 815 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#values()" title="class or interface in java.util">values</A></CODE> in interface <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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">V</A>></CODE></DL> 816 </DD> 817 <DD><DL> 818 </DL> 819 </DD> 820 </DL> 821 <HR> 822 823 <A NAME="equals(java.lang.Object)"><!-- --></A><H3> 824 equals</H3> 825 <PRE> 826 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> 827 <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> object)</PRE> 828 <DL> 829 <DD><DL> 830 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.util">equals</A></CODE> in interface <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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">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> 831 </DD> 832 <DD><DL> 833 </DL> 834 </DD> 835 </DL> 836 <HR> 837 838 <A NAME="hashCode()"><!-- --></A><H3> 839 hashCode</H3> 840 <PRE> 841 public int <B>hashCode</B>()</PRE> 842 <DL> 843 <DD><DL> 844 <DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true#hashCode()" title="class or interface in java.util">hashCode</A></CODE> in interface <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/ImmutableMap.html" title="type parameter in ImmutableMap">K</A>,<A HREF="../../../../com/google/common/collect/ImmutableMap.html" title="type parameter in ImmutableMap">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> 845 </DD> 846 <DD><DL> 847 </DL> 848 </DD> 849 </DL> 850 <HR> 851 852 <A NAME="toString()"><!-- --></A><H3> 853 toString</H3> 854 <PRE> 855 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> 856 <DL> 857 <DD><DL> 858 <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> 859 </DD> 860 <DD><DL> 861 </DL> 862 </DD> 863 </DL> 864 <!-- ========= END OF CLASS DATA ========= --> 865 <HR> 866 867 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=""> 872 <TR> 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="class-use/ImmutableMap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 881 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 882 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 883 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 884 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 885 </TR> 886 </TABLE> 887 </TD> 888 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 889 </EM> 890 </TD> 891 </TR> 892 893 <TR> 894 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 895 <A HREF="../../../../com/google/common/collect/ImmutableListMultimap.Builder.html" title="class in com.google.common.collect"><B>PREV CLASS</B></A> 896 <A HREF="../../../../com/google/common/collect/ImmutableMap.Builder.html" title="class in com.google.common.collect"><B>NEXT CLASS</B></A></FONT></TD> 897 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 898 <A HREF="../../../../index.html?com/google/common/collect/ImmutableMap.html" target="_top"><B>FRAMES</B></A> 899 <A HREF="ImmutableMap.html" target="_top"><B>NO FRAMES</B></A> 900 <SCRIPT type="text/javascript"> 901 <!-- 902 if(window==top) { 903 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 904 } 905 //--> 906 </SCRIPT> 907 <NOSCRIPT> 908 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 909 </NOSCRIPT> 910 911 912 </FONT></TD> 913 </TR> 914 <TR> 915 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 916 SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> 917 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 918 DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> 919 </TR> 920 </TABLE> 921 <A NAME="skip-navbar_bottom"></A> 922 <!-- ======== END OF BOTTOM NAVBAR ======= --> 923 924 <HR> 925 926 </BODY> 927 </HTML> 928