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:48:00 PST 2010 --> 6<TITLE> 7Uses of Class com.google.common.collect.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"> 15function windowTitle() 16{ 17 if (location.href.indexOf('is-external=true') == -1) { 18 parent.document.title="Uses of Class com.google.common.collect.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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </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 PREV 59 NEXT</FONT></TD> 60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 61 <A HREF="../../../../../index.html?com/google/common/collect//class-useImmutableMap.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</TABLE> 78<A NAME="skip-navbar_top"></A> 79<!-- ========= END OF TOP NAVBAR ========= --> 80 81<HR> 82<CENTER> 83<H2> 84<B>Uses of Class<br>com.google.common.collect.ImmutableMap</B></H2> 85</CENTER> 86 87<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 88<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 89<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 90Packages that use <A HREF="../../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A></FONT></TH> 91</TR> 92<TR BGCOLOR="white" CLASS="TableRowColor"> 93<TD><A HREF="#com.google.common.collect"><B>com.google.common.collect</B></A></TD> 94<TD>This package contains generic collection interfaces and implementations, and 95 other utilities for working with collections. </TD> 96</TR> 97</TABLE> 98 99<P> 100<A NAME="com.google.common.collect"><!-- --></A> 101<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 102<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 103<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 104Uses of <A HREF="../../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A> in <A HREF="../../../../../com/google/common/collect/package-summary.html">com.google.common.collect</A></FONT></TH> 105</TR> 106</TABLE> 107 108<P> 109 110<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 111<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 112<TH ALIGN="left" COLSPAN="2">Subclasses of <A HREF="../../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A> in <A HREF="../../../../../com/google/common/collect/package-summary.html">com.google.common.collect</A></FONT></TH> 113</TR> 114<TR BGCOLOR="white" CLASS="TableRowColor"> 115<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 116<CODE> class</CODE></FONT></TD> 117<TD><CODE><B><A HREF="../../../../../com/google/common/collect/ImmutableBiMap.html" title="class in com.google.common.collect">ImmutableBiMap<K,V></A></B></CODE> 118 119<BR> 120 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.</TD> 121</TR> 122<TR BGCOLOR="white" CLASS="TableRowColor"> 123<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 124<CODE> class</CODE></FONT></TD> 125<TD><CODE><B><A HREF="../../../../../com/google/common/collect/ImmutableSortedMap.html" title="class in com.google.common.collect">ImmutableSortedMap<K,V></A></B></CODE> 126 127<BR> 128 An immutable <A HREF="http://java.sun.com/javase/6/docs/api/java/util/SortedMap.html?is-external=true" title="class or interface in java.util"><CODE>SortedMap</CODE></A>.</TD> 129</TR> 130</TABLE> 131 132<P> 133 134<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 135<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"> 136<TH ALIGN="left" COLSPAN="2">Methods in <A HREF="../../../../../com/google/common/collect/package-summary.html">com.google.common.collect</A> that return <A HREF="../../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A></FONT></TH> 137</TR> 138<TR BGCOLOR="white" CLASS="TableRowColor"> 139<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 140<CODE> <A HREF="../../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><<A HREF="../../../../../com/google/common/collect/ImmutableMultimap.html" title="type parameter in ImmutableMultimap">K</A>,<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A><<A HREF="../../../../../com/google/common/collect/ImmutableMultimap.html" title="type parameter in ImmutableMultimap">V</A>>></CODE></FONT></TD> 141<TD><CODE><B>ImmutableMultimap.</B><B><A HREF="../../../../../com/google/common/collect/ImmutableMultimap.html#asMap()">asMap</A></B>()</CODE> 142 143<BR> 144 Returns an immutable map that associates each key with its corresponding 145 values in the multimap.</TD> 146</TR> 147<TR BGCOLOR="white" CLASS="TableRowColor"> 148<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 149<CODE> <A HREF="../../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</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>></CODE></FONT></TD> 150<TD><CODE><B>ImmutableMap.Builder.</B><B><A HREF="../../../../../com/google/common/collect/ImmutableMap.Builder.html#build()">build</A></B>()</CODE> 151 152<BR> 153 Returns a newly-created immutable map.</TD> 154</TR> 155<TR BGCOLOR="white" CLASS="TableRowColor"> 156<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 157<CODE>static 158<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 159<TR ALIGN="right" VALIGN=""> 160<TD NOWRAP><FONT SIZE="-1"> 161<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> 162</TR> 163</TABLE> 164</CODE></FONT></TD> 165<TD><CODE><B>ImmutableMap.</B><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> 166 167<BR> 168 Returns an immutable map containing the same entries as <code>map</code>.</TD> 169</TR> 170<TR BGCOLOR="white" CLASS="TableRowColor"> 171<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 172<CODE>static <A HREF="../../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><<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>,<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> 173<TD><CODE><B>Maps.</B><B><A HREF="../../../../../com/google/common/collect/Maps.html#fromProperties(java.util.Properties)">fromProperties</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</A> properties)</CODE> 174 175<BR> 176 Creates an <code>ImmutableMap<String, String></code> from a <code>Properties</code> 177 instance.</TD> 178</TR> 179<TR BGCOLOR="white" CLASS="TableRowColor"> 180<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 181<CODE>static 182<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 183<TR ALIGN="right" VALIGN=""> 184<TD NOWRAP><FONT SIZE="-1"> 185<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> 186</TR> 187</TABLE> 188</CODE></FONT></TD> 189<TD><CODE><B>ImmutableMap.</B><B><A HREF="../../../../../com/google/common/collect/ImmutableMap.html#of()">of</A></B>()</CODE> 190 191<BR> 192 Returns the empty map.</TD> 193</TR> 194<TR BGCOLOR="white" CLASS="TableRowColor"> 195<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 196<CODE>static 197<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 198<TR ALIGN="right" VALIGN=""> 199<TD NOWRAP><FONT SIZE="-1"> 200<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> 201</TR> 202</TABLE> 203</CODE></FONT></TD> 204<TD><CODE><B>ImmutableMap.</B><B><A HREF="../../../../../com/google/common/collect/ImmutableMap.html#of(K, V)">of</A></B>(K k1, 205 V v1)</CODE> 206 207<BR> 208 Returns an immutable map containing a single entry.</TD> 209</TR> 210<TR BGCOLOR="white" CLASS="TableRowColor"> 211<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 212<CODE>static 213<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 214<TR ALIGN="right" VALIGN=""> 215<TD NOWRAP><FONT SIZE="-1"> 216<CODE><K,V> <A HREF="../../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect">ImmutableMap</A><K,V></CODE></FONT></TD> 217</TR> 218</TABLE> 219</CODE></FONT></TD> 220<TD><CODE><B>ImmutableMap.</B><B><A HREF="../../../../../com/google/common/collect/ImmutableMap.html#of(K, V, K, V)">of</A></B>(K k1, 221 V v1, 222 K k2, 223 V v2)</CODE> 224 225<BR> 226 Returns an immutable map containing the given entries, in order.</TD> 227</TR> 228<TR BGCOLOR="white" CLASS="TableRowColor"> 229<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 230<CODE>static 231<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 232<TR ALIGN="right" VALIGN=""> 233<TD NOWRAP><FONT SIZE="-1"> 234<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> 235</TR> 236</TABLE> 237</CODE></FONT></TD> 238<TD><CODE><B>ImmutableMap.</B><B><A HREF="../../../../../com/google/common/collect/ImmutableMap.html#of(K, V, K, V, K, V)">of</A></B>(K k1, 239 V v1, 240 K k2, 241 V v2, 242 K k3, 243 V v3)</CODE> 244 245<BR> 246 Returns an immutable map containing the given entries, in order.</TD> 247</TR> 248<TR BGCOLOR="white" CLASS="TableRowColor"> 249<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 250<CODE>static 251<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 252<TR ALIGN="right" VALIGN=""> 253<TD NOWRAP><FONT SIZE="-1"> 254<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> 255</TR> 256</TABLE> 257</CODE></FONT></TD> 258<TD><CODE><B>ImmutableMap.</B><B><A HREF="../../../../../com/google/common/collect/ImmutableMap.html#of(K, V, K, V, K, V, K, V)">of</A></B>(K k1, 259 V v1, 260 K k2, 261 V v2, 262 K k3, 263 V v3, 264 K k4, 265 V v4)</CODE> 266 267<BR> 268 Returns an immutable map containing the given entries, in order.</TD> 269</TR> 270<TR BGCOLOR="white" CLASS="TableRowColor"> 271<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 272<CODE>static 273<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 274<TR ALIGN="right" VALIGN=""> 275<TD NOWRAP><FONT SIZE="-1"> 276<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> 277</TR> 278</TABLE> 279</CODE></FONT></TD> 280<TD><CODE><B>ImmutableMap.</B><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, 281 V v1, 282 K k2, 283 V v2, 284 K k3, 285 V v3, 286 K k4, 287 V v4, 288 K k5, 289 V v5)</CODE> 290 291<BR> 292 Returns an immutable map containing the given entries, in order.</TD> 293</TR> 294<TR BGCOLOR="white" CLASS="TableRowColor"> 295<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 296<CODE>static 297<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 298<TR ALIGN="right" VALIGN=""> 299<TD NOWRAP><FONT SIZE="-1"> 300<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> 301</TR> 302</TABLE> 303</CODE></FONT></TD> 304<TD><CODE><B>Maps.</B><B><A HREF="../../../../../com/google/common/collect/Maps.html#uniqueIndex(java.lang.Iterable, com.google.common.base.Function)">uniqueIndex</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><V> values, 305 <A HREF="../../../../../com/google/common/base/Function.html" title="interface in com.google.common.base">Function</A><? super V,K> keyFunction)</CODE> 306 307<BR> 308 Returns an immutable map for which the <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"><CODE>Map.values()</CODE></A> are the given 309 elements in the given order, and each key is the product of invoking a 310 supplied function on its corresponding value.</TD> 311</TR> 312</TABLE> 313 314<P> 315<HR> 316 317 318<!-- ======= START OF BOTTOM NAVBAR ====== --> 319<A NAME="navbar_bottom"><!-- --></A> 320<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 321<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 322<TR> 323<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 324<A NAME="navbar_bottom_firstrow"><!-- --></A> 325<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 326 <TR ALIGN="center" VALIGN="top"> 327 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 328 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 329 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../com/google/common/collect/ImmutableMap.html" title="class in com.google.common.collect"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A> </TD> 330 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> 331 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 332 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 333 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 334 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 335 </TR> 336</TABLE> 337</TD> 338<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 339</EM> 340</TD> 341</TR> 342 343<TR> 344<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 345 PREV 346 NEXT</FONT></TD> 347<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 348 <A HREF="../../../../../index.html?com/google/common/collect//class-useImmutableMap.html" target="_top"><B>FRAMES</B></A> 349 <A HREF="ImmutableMap.html" target="_top"><B>NO FRAMES</B></A> 350 <SCRIPT type="text/javascript"> 351 <!-- 352 if(window==top) { 353 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 354 } 355 //--> 356</SCRIPT> 357<NOSCRIPT> 358 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 359</NOSCRIPT> 360 361 362</FONT></TD> 363</TR> 364</TABLE> 365<A NAME="skip-navbar_bottom"></A> 366<!-- ======== END OF BOTTOM NAVBAR ======= --> 367 368<HR> 369 370</BODY> 371</HTML> 372