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