1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.5.0_07) on Fri Apr 11 15:39:17 BST 2008 -->
6 <META http-equiv=
"Content-Type" content=
"text/html; charset=ISO-8859-1">
8 MapUtils (Commons Collections
3.2.1 API)
11 <META NAME=
"keywords" CONTENT=
"org.apache.commons.collections.MapUtils class">
13 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../../../stylesheet.css" TITLE=
"Style">
15 <SCRIPT type=
"text/javascript">
16 function windowTitle()
18 parent.document.
title=
"MapUtils (Commons Collections 3.2.1 API)";
26 <BODY BGCOLOR=
"white" onload=
"windowTitle();">
29 <!-- ========= START OF TOP NAVBAR ======= -->
30 <A NAME=
"navbar_top"><!-- --></A>
31 <A HREF=
"#skip-navbar_top" title=
"Skip navigation links"></A>
32 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
34 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
35 <A NAME=
"navbar_top_firstrow"><!-- --></A>
36 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
37 <TR ALIGN=
"center" VALIGN=
"top">
38 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
39 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
40 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
41 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/MapUtils.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
42 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
43 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
44 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
45 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
49 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
55 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
56 <A HREF=
"../../../../org/apache/commons/collections/MapIterator.html" title=
"interface in org.apache.commons.collections"><B>PREV CLASS
</B></A>
57 <A HREF=
"../../../../org/apache/commons/collections/MultiHashMap.html" title=
"class in org.apache.commons.collections"><B>NEXT CLASS
</B></A></FONT></TD>
58 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
59 <A HREF=
"../../../../index.html?org/apache/commons/collections/MapUtils.html" target=
"_top"><B>FRAMES
</B></A>
60 <A HREF=
"MapUtils.html" target=
"_top"><B>NO FRAMES
</B></A>
61 <SCRIPT type=
"text/javascript">
64 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
69 <A HREF=
"../../../../allclasses-noframe.html"><B>All Classes
</B></A>
76 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
77 SUMMARY:
NESTED
|
<A HREF=
"#field_summary">FIELD
</A> |
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
78 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
79 DETAIL:
<A HREF=
"#field_detail">FIELD
</A> |
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
82 <A NAME=
"skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
86 <!-- ======== START OF CLASS DATA ======== -->
89 org.apache.commons.collections
</FONT>
94 <IMG SRC=
"../../../../resources/inherit.gif" ALT=
"extended by "><B>org.apache.commons.collections.MapUtils
</B>
98 <DT><PRE>public class
<B>MapUtils
</B><DT>extends java.lang.Object
</DL>
102 Provides utility methods and decorators for
103 <CODE>Map
</CODE> and
<CODE>SortedMap
</CODE> instances.
105 It contains various type safe methods
106 as well as other useful features like deep copying.
108 It also provides the following decorators:
111 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#fixedSizeMap(java.util.Map)"><CODE>fixedSizeMap(Map)
</CODE></A>
112 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#fixedSizeSortedMap(java.util.SortedMap)"><CODE>fixedSizeSortedMap(SortedMap)
</CODE></A>
113 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#lazyMap(java.util.Map, org.apache.commons.collections.Factory)"><CODE>lazyMap(Map,Factory)
</CODE></A>
114 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#lazyMap(java.util.Map, org.apache.commons.collections.Transformer)"><CODE>lazyMap(Map,Transformer)
</CODE></A>
115 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#lazySortedMap(java.util.SortedMap, org.apache.commons.collections.Factory)"><CODE>lazySortedMap(SortedMap,Factory)
</CODE></A>
116 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#lazySortedMap(java.util.SortedMap, org.apache.commons.collections.Transformer)"><CODE>lazySortedMap(SortedMap,Transformer)
</CODE></A>
117 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#predicatedMap(java.util.Map, org.apache.commons.collections.Predicate, org.apache.commons.collections.Predicate)"><CODE>predicatedMap(Map,Predicate,Predicate)
</CODE></A>
118 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#predicatedSortedMap(java.util.SortedMap, org.apache.commons.collections.Predicate, org.apache.commons.collections.Predicate)"><CODE>predicatedSortedMap(SortedMap,Predicate,Predicate)
</CODE></A>
119 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#transformedMap(java.util.Map, org.apache.commons.collections.Transformer, org.apache.commons.collections.Transformer)"><CODE>transformedMap(Map, Transformer, Transformer)
</CODE></A>
120 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#transformedSortedMap(java.util.SortedMap, org.apache.commons.collections.Transformer, org.apache.commons.collections.Transformer)"><CODE>transformedSortedMap(SortedMap, Transformer, Transformer)
</CODE></A>
121 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#typedMap(java.util.Map, java.lang.Class, java.lang.Class)"><CODE>typedMap(Map, Class, Class)
</CODE></A>
122 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#typedSortedMap(java.util.SortedMap, java.lang.Class, java.lang.Class)"><CODE>typedSortedMap(SortedMap, Class, Class)
</CODE></A>
123 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#multiValueMap(java.util.Map)"><CODE>multiValueMap( Map )
</CODE></A>
124 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#multiValueMap(java.util.Map, java.lang.Class)"><CODE>multiValueMap( Map, Class )
</CODE></A>
125 <li><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#multiValueMap(java.util.Map, org.apache.commons.collections.Factory)"><CODE>multiValueMap( Map, Factory )
</CODE></A>
131 <DT><B>Since:
</B></DT>
132 <DD>Commons Collections
1.0</DD>
133 <DT><B>Version:
</B></DT>
134 <DD>$Revision:
646777 $ $Date:
2008-
04-
10 13:
33:
15 +
0100 (Thu,
10 Apr
2008) $
</DD>
135 <DT><B>Author:
</B></DT>
136 <DD><a href=
"mailto:jstrachan@apache.org">James Strachan
</a>,
<a href=
"mailto:nissim@nksystems.com">Nissim Karpenstein
</a>,
<a href=
"mailto:knielsen@apache.org">Kasper Nielsen
</a>, Paul Jack, Stephen Colebourne, Matthew Hawthorne, Arun Mammen Thomas, Janek Bogucki, Max Rydahl Andersen,
<a href=
"mailto:equinus100@hotmail.com">Ashwin S
</a>,
<a href=
"mailto:jcarman@apache.org">James Carman
</a>, Neil O'Toole
</DD>
141 <!-- =========== FIELD SUMMARY =========== -->
143 <A NAME=
"field_summary"><!-- --></A>
144 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
145 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
146 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
147 <B>Field Summary
</B></FONT></TH>
149 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
150 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
151 <CODE>static
java.util.Map
</CODE></FONT></TD>
152 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#EMPTY_MAP">EMPTY_MAP
</A></B></CODE>
155 An empty unmodifiable map.
</TD>
157 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
158 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
159 <CODE>static
java.util.SortedMap
</CODE></FONT></TD>
160 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#EMPTY_SORTED_MAP">EMPTY_SORTED_MAP
</A></B></CODE>
163 An empty unmodifiable sorted map.
</TD>
167 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
169 <A NAME=
"constructor_summary"><!-- --></A>
170 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
171 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
172 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
173 <B>Constructor Summary
</B></FONT></TH>
175 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
176 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#MapUtils()">MapUtils
</A></B>()
</CODE>
179 <code>MapUtils
</code> should not normally be instantiated.
</TD>
183 <!-- ========== METHOD SUMMARY =========== -->
185 <A NAME=
"method_summary"><!-- --></A>
186 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
187 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
188 <TH ALIGN=
"left" COLSPAN=
"2"><FONT SIZE=
"+2">
189 <B>Method Summary
</B></FONT></TH>
191 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
192 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
193 <CODE>static
void
</CODE></FONT></TD>
194 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#debugPrint(java.io.PrintStream, java.lang.Object, java.util.Map)">debugPrint
</A></B>(java.io.PrintStream
out,
195 java.lang.Object
label,
196 java.util.Map
map)
</CODE>
199 Prints the given map with nice line breaks.
</TD>
201 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
202 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
203 <CODE>static
java.util.Map
</CODE></FONT></TD>
204 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#fixedSizeMap(java.util.Map)">fixedSizeMap
</A></B>(java.util.Map
map)
</CODE>
207 Returns a fixed-sized map backed by the given map.
</TD>
209 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
210 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
211 <CODE>static
java.util.SortedMap
</CODE></FONT></TD>
212 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#fixedSizeSortedMap(java.util.SortedMap)">fixedSizeSortedMap
</A></B>(java.util.SortedMap
map)
</CODE>
215 Returns a fixed-sized sorted map backed by the given sorted map.
</TD>
217 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
218 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
219 <CODE>static
java.lang.Boolean
</CODE></FONT></TD>
220 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getBoolean(java.util.Map, java.lang.Object)">getBoolean
</A></B>(java.util.Map
map,
221 java.lang.Object
key)
</CODE>
224 Gets a Boolean from a Map in a null-safe manner.
</TD>
226 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
227 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
228 <CODE>static
java.lang.Boolean
</CODE></FONT></TD>
229 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getBoolean(java.util.Map, java.lang.Object, java.lang.Boolean)">getBoolean
</A></B>(java.util.Map
map,
230 java.lang.Object
key,
231 java.lang.Boolean
defaultValue)
</CODE>
234 Looks up the given key in the given map, converting the result into
235 a boolean, using the default value if the the conversion fails.
</TD>
237 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
238 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
239 <CODE>static
boolean
</CODE></FONT></TD>
240 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getBooleanValue(java.util.Map, java.lang.Object)">getBooleanValue
</A></B>(java.util.Map
map,
241 java.lang.Object
key)
</CODE>
244 Gets a boolean from a Map in a null-safe manner.
</TD>
246 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
247 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
248 <CODE>static
boolean
</CODE></FONT></TD>
249 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getBooleanValue(java.util.Map, java.lang.Object, boolean)">getBooleanValue
</A></B>(java.util.Map
map,
250 java.lang.Object
key,
251 boolean
defaultValue)
</CODE>
254 Gets a boolean from a Map in a null-safe manner,
255 using the default value if the the conversion fails.
</TD>
257 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
258 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
259 <CODE>static
java.lang.Byte
</CODE></FONT></TD>
260 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getByte(java.util.Map, java.lang.Object)">getByte
</A></B>(java.util.Map
map,
261 java.lang.Object
key)
</CODE>
264 Gets a Byte from a Map in a null-safe manner.
</TD>
266 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
267 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
268 <CODE>static
java.lang.Byte
</CODE></FONT></TD>
269 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getByte(java.util.Map, java.lang.Object, java.lang.Byte)">getByte
</A></B>(java.util.Map
map,
270 java.lang.Object
key,
271 java.lang.Byte
defaultValue)
</CODE>
274 Looks up the given key in the given map, converting the result into
275 a byte, using the default value if the the conversion fails.
</TD>
277 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
278 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
279 <CODE>static
byte
</CODE></FONT></TD>
280 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getByteValue(java.util.Map, java.lang.Object)">getByteValue
</A></B>(java.util.Map
map,
281 java.lang.Object
key)
</CODE>
284 Gets a byte from a Map in a null-safe manner.
</TD>
286 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
287 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
288 <CODE>static
byte
</CODE></FONT></TD>
289 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getByteValue(java.util.Map, java.lang.Object, byte)">getByteValue
</A></B>(java.util.Map
map,
290 java.lang.Object
key,
291 byte
defaultValue)
</CODE>
294 Gets a byte from a Map in a null-safe manner,
295 using the default value if the the conversion fails.
</TD>
297 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
298 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
299 <CODE>static
java.lang.Double
</CODE></FONT></TD>
300 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getDouble(java.util.Map, java.lang.Object)">getDouble
</A></B>(java.util.Map
map,
301 java.lang.Object
key)
</CODE>
304 Gets a Double from a Map in a null-safe manner.
</TD>
306 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
307 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
308 <CODE>static
java.lang.Double
</CODE></FONT></TD>
309 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getDouble(java.util.Map, java.lang.Object, java.lang.Double)">getDouble
</A></B>(java.util.Map
map,
310 java.lang.Object
key,
311 java.lang.Double
defaultValue)
</CODE>
314 Looks up the given key in the given map, converting the result into
315 a double, using the default value if the the conversion fails.
</TD>
317 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
318 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
319 <CODE>static
double
</CODE></FONT></TD>
320 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getDoubleValue(java.util.Map, java.lang.Object)">getDoubleValue
</A></B>(java.util.Map
map,
321 java.lang.Object
key)
</CODE>
324 Gets a double from a Map in a null-safe manner.
</TD>
326 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
327 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
328 <CODE>static
double
</CODE></FONT></TD>
329 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getDoubleValue(java.util.Map, java.lang.Object, double)">getDoubleValue
</A></B>(java.util.Map
map,
330 java.lang.Object
key,
331 double
defaultValue)
</CODE>
334 Gets a double from a Map in a null-safe manner,
335 using the default value if the the conversion fails.
</TD>
337 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
338 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
339 <CODE>static
java.lang.Float
</CODE></FONT></TD>
340 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getFloat(java.util.Map, java.lang.Object)">getFloat
</A></B>(java.util.Map
map,
341 java.lang.Object
key)
</CODE>
344 Gets a Float from a Map in a null-safe manner.
</TD>
346 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
347 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
348 <CODE>static
java.lang.Float
</CODE></FONT></TD>
349 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getFloat(java.util.Map, java.lang.Object, java.lang.Float)">getFloat
</A></B>(java.util.Map
map,
350 java.lang.Object
key,
351 java.lang.Float
defaultValue)
</CODE>
354 Looks up the given key in the given map, converting the result into
355 a float, using the default value if the the conversion fails.
</TD>
357 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
358 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
359 <CODE>static
float
</CODE></FONT></TD>
360 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getFloatValue(java.util.Map, java.lang.Object)">getFloatValue
</A></B>(java.util.Map
map,
361 java.lang.Object
key)
</CODE>
364 Gets a float from a Map in a null-safe manner.
</TD>
366 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
367 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
368 <CODE>static
float
</CODE></FONT></TD>
369 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getFloatValue(java.util.Map, java.lang.Object, float)">getFloatValue
</A></B>(java.util.Map
map,
370 java.lang.Object
key,
371 float
defaultValue)
</CODE>
374 Gets a float from a Map in a null-safe manner,
375 using the default value if the the conversion fails.
</TD>
377 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
378 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
379 <CODE>static
java.lang.Integer
</CODE></FONT></TD>
380 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getInteger(java.util.Map, java.lang.Object)">getInteger
</A></B>(java.util.Map
map,
381 java.lang.Object
key)
</CODE>
384 Gets a Integer from a Map in a null-safe manner.
</TD>
386 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
387 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
388 <CODE>static
java.lang.Integer
</CODE></FONT></TD>
389 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getInteger(java.util.Map, java.lang.Object, java.lang.Integer)">getInteger
</A></B>(java.util.Map
map,
390 java.lang.Object
key,
391 java.lang.Integer
defaultValue)
</CODE>
394 Looks up the given key in the given map, converting the result into
395 an integer, using the default value if the the conversion fails.
</TD>
397 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
398 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
399 <CODE>static
int
</CODE></FONT></TD>
400 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getIntValue(java.util.Map, java.lang.Object)">getIntValue
</A></B>(java.util.Map
map,
401 java.lang.Object
key)
</CODE>
404 Gets an int from a Map in a null-safe manner.
</TD>
406 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
407 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
408 <CODE>static
int
</CODE></FONT></TD>
409 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getIntValue(java.util.Map, java.lang.Object, int)">getIntValue
</A></B>(java.util.Map
map,
410 java.lang.Object
key,
411 int
defaultValue)
</CODE>
414 Gets an int from a Map in a null-safe manner,
415 using the default value if the the conversion fails.
</TD>
417 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
418 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
419 <CODE>static
java.lang.Long
</CODE></FONT></TD>
420 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getLong(java.util.Map, java.lang.Object)">getLong
</A></B>(java.util.Map
map,
421 java.lang.Object
key)
</CODE>
424 Gets a Long from a Map in a null-safe manner.
</TD>
426 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
427 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
428 <CODE>static
java.lang.Long
</CODE></FONT></TD>
429 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getLong(java.util.Map, java.lang.Object, java.lang.Long)">getLong
</A></B>(java.util.Map
map,
430 java.lang.Object
key,
431 java.lang.Long
defaultValue)
</CODE>
434 Looks up the given key in the given map, converting the result into
435 a long, using the default value if the the conversion fails.
</TD>
437 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
438 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
439 <CODE>static
long
</CODE></FONT></TD>
440 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getLongValue(java.util.Map, java.lang.Object)">getLongValue
</A></B>(java.util.Map
map,
441 java.lang.Object
key)
</CODE>
444 Gets a long from a Map in a null-safe manner.
</TD>
446 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
447 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
448 <CODE>static
long
</CODE></FONT></TD>
449 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getLongValue(java.util.Map, java.lang.Object, long)">getLongValue
</A></B>(java.util.Map
map,
450 java.lang.Object
key,
451 long
defaultValue)
</CODE>
454 Gets a long from a Map in a null-safe manner,
455 using the default value if the the conversion fails.
</TD>
457 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
458 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
459 <CODE>static
java.util.Map
</CODE></FONT></TD>
460 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getMap(java.util.Map, java.lang.Object)">getMap
</A></B>(java.util.Map
map,
461 java.lang.Object
key)
</CODE>
464 Gets a Map from a Map in a null-safe manner.
</TD>
466 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
467 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
468 <CODE>static
java.util.Map
</CODE></FONT></TD>
469 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getMap(java.util.Map, java.lang.Object, java.util.Map)">getMap
</A></B>(java.util.Map
map,
470 java.lang.Object
key,
471 java.util.Map
defaultValue)
</CODE>
474 Looks up the given key in the given map, converting the result into
475 a map, using the default value if the the conversion fails.
</TD>
477 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
478 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
479 <CODE>static
java.lang.Number
</CODE></FONT></TD>
480 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)">getNumber
</A></B>(java.util.Map
map,
481 java.lang.Object
key)
</CODE>
484 Gets a Number from a Map in a null-safe manner.
</TD>
486 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
487 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
488 <CODE>static
java.lang.Number
</CODE></FONT></TD>
489 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object, java.lang.Number)">getNumber
</A></B>(java.util.Map
map,
490 java.lang.Object
key,
491 java.lang.Number
defaultValue)
</CODE>
494 Looks up the given key in the given map, converting the result into
495 a number, using the default value if the the conversion fails.
</TD>
497 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
498 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
499 <CODE>static
java.lang.Object
</CODE></FONT></TD>
500 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getObject(java.util.Map, java.lang.Object)">getObject
</A></B>(java.util.Map
map,
501 java.lang.Object
key)
</CODE>
504 Gets from a Map in a null-safe manner.
</TD>
506 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
507 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
508 <CODE>static
java.lang.Object
</CODE></FONT></TD>
509 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getObject(java.util.Map, java.lang.Object, java.lang.Object)">getObject
</A></B>(java.util.Map
map,
510 java.lang.Object
key,
511 java.lang.Object
defaultValue)
</CODE>
514 Looks up the given key in the given map, converting null into the
515 given default value.
</TD>
517 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
518 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
519 <CODE>static
java.lang.Short
</CODE></FONT></TD>
520 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getShort(java.util.Map, java.lang.Object)">getShort
</A></B>(java.util.Map
map,
521 java.lang.Object
key)
</CODE>
524 Gets a Short from a Map in a null-safe manner.
</TD>
526 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
527 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
528 <CODE>static
java.lang.Short
</CODE></FONT></TD>
529 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getShort(java.util.Map, java.lang.Object, java.lang.Short)">getShort
</A></B>(java.util.Map
map,
530 java.lang.Object
key,
531 java.lang.Short
defaultValue)
</CODE>
534 Looks up the given key in the given map, converting the result into
535 a short, using the default value if the the conversion fails.
</TD>
537 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
538 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
539 <CODE>static
short
</CODE></FONT></TD>
540 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getShortValue(java.util.Map, java.lang.Object)">getShortValue
</A></B>(java.util.Map
map,
541 java.lang.Object
key)
</CODE>
544 Gets a short from a Map in a null-safe manner.
</TD>
546 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
547 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
548 <CODE>static
short
</CODE></FONT></TD>
549 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getShortValue(java.util.Map, java.lang.Object, short)">getShortValue
</A></B>(java.util.Map
map,
550 java.lang.Object
key,
551 short
defaultValue)
</CODE>
554 Gets a short from a Map in a null-safe manner,
555 using the default value if the the conversion fails.
</TD>
557 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
558 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
559 <CODE>static
java.lang.String
</CODE></FONT></TD>
560 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getString(java.util.Map, java.lang.Object)">getString
</A></B>(java.util.Map
map,
561 java.lang.Object
key)
</CODE>
564 Gets a String from a Map in a null-safe manner.
</TD>
566 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
567 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
568 <CODE>static
java.lang.String
</CODE></FONT></TD>
569 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getString(java.util.Map, java.lang.Object, java.lang.String)">getString
</A></B>(java.util.Map
map,
570 java.lang.Object
key,
571 java.lang.String
defaultValue)
</CODE>
574 Looks up the given key in the given map, converting the result into
575 a string, using the default value if the the conversion fails.
</TD>
577 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
578 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
579 <CODE>static
java.util.Map
</CODE></FONT></TD>
580 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#invertMap(java.util.Map)">invertMap
</A></B>(java.util.Map
map)
</CODE>
583 Inverts the supplied map returning a new HashMap such that the keys of
584 the input are swapped with the values.
</TD>
586 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
587 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
588 <CODE>static
boolean
</CODE></FONT></TD>
589 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#isEmpty(java.util.Map)">isEmpty
</A></B>(java.util.Map
map)
</CODE>
592 Null-safe check if the specified map is empty.
</TD>
594 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
595 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
596 <CODE>static
boolean
</CODE></FONT></TD>
597 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#isNotEmpty(java.util.Map)">isNotEmpty
</A></B>(java.util.Map
map)
</CODE>
600 Null-safe check if the specified map is not empty.
</TD>
602 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
603 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
604 <CODE>static
java.util.Map
</CODE></FONT></TD>
605 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#lazyMap(java.util.Map, org.apache.commons.collections.Factory)">lazyMap
</A></B>(java.util.Map
map,
606 <A HREF=
"../../../../org/apache/commons/collections/Factory.html" title=
"interface in org.apache.commons.collections">Factory
</A> factory)
</CODE>
609 Returns a
"lazy" map whose values will be created on demand.
</TD>
611 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
612 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
613 <CODE>static
java.util.Map
</CODE></FONT></TD>
614 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#lazyMap(java.util.Map, org.apache.commons.collections.Transformer)">lazyMap
</A></B>(java.util.Map
map,
615 <A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> transformerFactory)
</CODE>
618 Returns a
"lazy" map whose values will be created on demand.
</TD>
620 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
621 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
622 <CODE>static
java.util.SortedMap
</CODE></FONT></TD>
623 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#lazySortedMap(java.util.SortedMap, org.apache.commons.collections.Factory)">lazySortedMap
</A></B>(java.util.SortedMap
map,
624 <A HREF=
"../../../../org/apache/commons/collections/Factory.html" title=
"interface in org.apache.commons.collections">Factory
</A> factory)
</CODE>
627 Returns a
"lazy" sorted map whose values will be created on demand.
</TD>
629 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
630 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
631 <CODE>static
java.util.SortedMap
</CODE></FONT></TD>
632 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#lazySortedMap(java.util.SortedMap, org.apache.commons.collections.Transformer)">lazySortedMap
</A></B>(java.util.SortedMap
map,
633 <A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> transformerFactory)
</CODE>
636 Returns a
"lazy" sorted map whose values will be created on demand.
</TD>
638 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
639 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
640 <CODE>protected static
void
</CODE></FONT></TD>
641 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#logInfo(java.lang.Exception)">logInfo
</A></B>(java.lang.Exception
ex)
</CODE>
644 Logs the given exception to
<code>System.out
</code>.
</TD>
646 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
647 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
648 <CODE>static
java.util.Map
</CODE></FONT></TD>
649 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#multiValueMap(java.util.Map)">multiValueMap
</A></B>(java.util.Map
map)
</CODE>
652 Creates a mult-value map backed by the given map which returns
653 collections of type ArrayList.
</TD>
655 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
656 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
657 <CODE>static
java.util.Map
</CODE></FONT></TD>
658 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#multiValueMap(java.util.Map, java.lang.Class)">multiValueMap
</A></B>(java.util.Map
map,
659 java.lang.Class
collectionClass)
</CODE>
662 Creates a multi-value map backed by the given map which returns
663 collections of the specified type.
</TD>
665 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
666 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
667 <CODE>static
java.util.Map
</CODE></FONT></TD>
668 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#multiValueMap(java.util.Map, org.apache.commons.collections.Factory)">multiValueMap
</A></B>(java.util.Map
map,
669 <A HREF=
"../../../../org/apache/commons/collections/Factory.html" title=
"interface in org.apache.commons.collections">Factory
</A> collectionFactory)
</CODE>
672 Creates a multi-value map backed by the given map which returns
673 collections created by the specified collection factory.
</TD>
675 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
676 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
677 <CODE>static
java.util.Map
</CODE></FONT></TD>
678 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#orderedMap(java.util.Map)">orderedMap
</A></B>(java.util.Map
map)
</CODE>
681 Returns a map that maintains the order of keys that are added
682 backed by the given map.
</TD>
684 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
685 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
686 <CODE>static
java.util.Map
</CODE></FONT></TD>
687 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#predicatedMap(java.util.Map, org.apache.commons.collections.Predicate, org.apache.commons.collections.Predicate)">predicatedMap
</A></B>(java.util.Map
map,
688 <A HREF=
"../../../../org/apache/commons/collections/Predicate.html" title=
"interface in org.apache.commons.collections">Predicate
</A> keyPred,
689 <A HREF=
"../../../../org/apache/commons/collections/Predicate.html" title=
"interface in org.apache.commons.collections">Predicate
</A> valuePred)
</CODE>
692 Returns a predicated (validating) map backed by the given map.
</TD>
694 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
695 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
696 <CODE>static
java.util.SortedMap
</CODE></FONT></TD>
697 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#predicatedSortedMap(java.util.SortedMap, org.apache.commons.collections.Predicate, org.apache.commons.collections.Predicate)">predicatedSortedMap
</A></B>(java.util.SortedMap
map,
698 <A HREF=
"../../../../org/apache/commons/collections/Predicate.html" title=
"interface in org.apache.commons.collections">Predicate
</A> keyPred,
699 <A HREF=
"../../../../org/apache/commons/collections/Predicate.html" title=
"interface in org.apache.commons.collections">Predicate
</A> valuePred)
</CODE>
702 Returns a predicated (validating) sorted map backed by the given map.
</TD>
704 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
705 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
706 <CODE>static
java.util.Map
</CODE></FONT></TD>
707 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#putAll(java.util.Map, java.lang.Object[])">putAll
</A></B>(java.util.Map
map,
708 java.lang.Object[]
array)
</CODE>
711 Puts all the keys and values from the specified array into the map.
</TD>
713 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
714 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
715 <CODE>static
void
</CODE></FONT></TD>
716 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#safeAddToMap(java.util.Map, java.lang.Object, java.lang.Object)">safeAddToMap
</A></B>(java.util.Map
map,
717 java.lang.Object
key,
718 java.lang.Object
value)
</CODE>
721 Protects against adding null values to a map.
</TD>
723 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
724 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
725 <CODE>static
java.util.Map
</CODE></FONT></TD>
726 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#synchronizedMap(java.util.Map)">synchronizedMap
</A></B>(java.util.Map
map)
</CODE>
729 Returns a synchronized map backed by the given map.
</TD>
731 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
732 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
733 <CODE>static
java.util.Map
</CODE></FONT></TD>
734 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#synchronizedSortedMap(java.util.SortedMap)">synchronizedSortedMap
</A></B>(java.util.SortedMap
map)
</CODE>
737 Returns a synchronized sorted map backed by the given sorted map.
</TD>
739 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
740 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
741 <CODE>static
java.util.Map
</CODE></FONT></TD>
742 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#toMap(java.util.ResourceBundle)">toMap
</A></B>(java.util.ResourceBundle
resourceBundle)
</CODE>
745 Creates a new HashMap using data copied from a ResourceBundle.
</TD>
747 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
748 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
749 <CODE>static
java.util.Properties
</CODE></FONT></TD>
750 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#toProperties(java.util.Map)">toProperties
</A></B>(java.util.Map
map)
</CODE>
753 Gets a new Properties object initialised with the values from a Map.
</TD>
755 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
756 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
757 <CODE>static
java.util.Map
</CODE></FONT></TD>
758 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#transformedMap(java.util.Map, org.apache.commons.collections.Transformer, org.apache.commons.collections.Transformer)">transformedMap
</A></B>(java.util.Map
map,
759 <A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> keyTransformer,
760 <A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> valueTransformer)
</CODE>
763 Returns a transformed map backed by the given map.
</TD>
765 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
766 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
767 <CODE>static
java.util.SortedMap
</CODE></FONT></TD>
768 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#transformedSortedMap(java.util.SortedMap, org.apache.commons.collections.Transformer, org.apache.commons.collections.Transformer)">transformedSortedMap
</A></B>(java.util.SortedMap
map,
769 <A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> keyTransformer,
770 <A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> valueTransformer)
</CODE>
773 Returns a transformed sorted map backed by the given map.
</TD>
775 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
776 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
777 <CODE>static
java.util.Map
</CODE></FONT></TD>
778 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#typedMap(java.util.Map, java.lang.Class, java.lang.Class)">typedMap
</A></B>(java.util.Map
map,
779 java.lang.Class
keyType,
780 java.lang.Class
valueType)
</CODE>
783 Returns a typed map backed by the given map.
</TD>
785 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
786 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
787 <CODE>static
java.util.SortedMap
</CODE></FONT></TD>
788 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#typedSortedMap(java.util.SortedMap, java.lang.Class, java.lang.Class)">typedSortedMap
</A></B>(java.util.SortedMap
map,
789 java.lang.Class
keyType,
790 java.lang.Class
valueType)
</CODE>
793 Returns a typed sorted map backed by the given map.
</TD>
795 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
796 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
797 <CODE>static
java.util.Map
</CODE></FONT></TD>
798 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#unmodifiableMap(java.util.Map)">unmodifiableMap
</A></B>(java.util.Map
map)
</CODE>
801 Returns an unmodifiable map backed by the given map.
</TD>
803 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
804 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
805 <CODE>static
java.util.Map
</CODE></FONT></TD>
806 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#unmodifiableSortedMap(java.util.SortedMap)">unmodifiableSortedMap
</A></B>(java.util.SortedMap
map)
</CODE>
809 Returns an unmodifiable sorted map backed by the given sorted map.
</TD>
811 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
812 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
813 <CODE>static
void
</CODE></FONT></TD>
814 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#verbosePrint(java.io.PrintStream, java.lang.Object, java.util.Map)">verbosePrint
</A></B>(java.io.PrintStream
out,
815 java.lang.Object
label,
816 java.util.Map
map)
</CODE>
819 Prints the given map with nice line breaks.
</TD>
822 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
823 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
824 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
825 <TH ALIGN=
"left"><B>Methods inherited from class java.lang.Object
</B></TH>
827 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
828 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
</CODE></TD>
834 <!-- ============ FIELD DETAIL =========== -->
836 <A NAME=
"field_detail"><!-- --></A>
837 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
838 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
839 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
840 <B>Field Detail
</B></FONT></TH>
844 <A NAME=
"EMPTY_MAP"><!-- --></A><H3>
847 public static final java.util.Map
<B>EMPTY_MAP
</B></PRE>
849 <DD>An empty unmodifiable map.
850 This was not provided in JDK1.2.
857 <A NAME=
"EMPTY_SORTED_MAP"><!-- --></A><H3>
858 EMPTY_SORTED_MAP
</H3>
860 public static final java.util.SortedMap
<B>EMPTY_SORTED_MAP
</B></PRE>
862 <DD>An empty unmodifiable sorted map.
863 This is not provided in the JDK.
869 <!-- ========= CONSTRUCTOR DETAIL ======== -->
871 <A NAME=
"constructor_detail"><!-- --></A>
872 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
873 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
874 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
875 <B>Constructor Detail
</B></FONT></TH>
879 <A NAME=
"MapUtils()"><!-- --></A><H3>
882 public
<B>MapUtils
</B>()
</PRE>
884 <DD><code>MapUtils
</code> should not normally be instantiated.
888 <!-- ============ METHOD DETAIL ========== -->
890 <A NAME=
"method_detail"><!-- --></A>
891 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
892 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
893 <TH ALIGN=
"left" COLSPAN=
"1"><FONT SIZE=
"+2">
894 <B>Method Detail
</B></FONT></TH>
898 <A NAME=
"getObject(java.util.Map, java.lang.Object)"><!-- --></A><H3>
901 public static java.lang.Object
<B>getObject
</B>(java.util.Map
map,
902 java.lang.Object
key)
</PRE>
904 <DD>Gets from a Map in a null-safe manner.
907 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
908 <DT><B>Returns:
</B><DD>the value in the Map,
<code>null
</code> if null map input
</DL>
913 <A NAME=
"getString(java.util.Map, java.lang.Object)"><!-- --></A><H3>
916 public static java.lang.String
<B>getString
</B>(java.util.Map
map,
917 java.lang.Object
key)
</PRE>
919 <DD>Gets a String from a Map in a null-safe manner.
921 The String is obtained via
<code>toString
</code>.
924 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
925 <DT><B>Returns:
</B><DD>the value in the Map as a String,
<code>null
</code> if null map input
</DL>
930 <A NAME=
"getBoolean(java.util.Map, java.lang.Object)"><!-- --></A><H3>
933 public static java.lang.Boolean
<B>getBoolean
</B>(java.util.Map
map,
934 java.lang.Object
key)
</PRE>
936 <DD>Gets a Boolean from a Map in a null-safe manner.
938 If the value is a
<code>Boolean
</code> it is returned directly.
939 If the value is a
<code>String
</code> and it equals 'true' ignoring case
940 then
<code>true
</code> is returned, otherwise
<code>false
</code>.
941 If the value is a
<code>Number
</code> an integer zero value returns
942 <code>false
</code> and non-zero returns
<code>true
</code>.
943 Otherwise,
<code>null
</code> is returned.
946 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
947 <DT><B>Returns:
</B><DD>the value in the Map as a Boolean,
<code>null
</code> if null map input
</DL>
952 <A NAME=
"getNumber(java.util.Map, java.lang.Object)"><!-- --></A><H3>
955 public static java.lang.Number
<B>getNumber
</B>(java.util.Map
map,
956 java.lang.Object
key)
</PRE>
958 <DD>Gets a Number from a Map in a null-safe manner.
960 If the value is a
<code>Number
</code> it is returned directly.
961 If the value is a
<code>String
</code> it is converted using
962 <CODE>NumberFormat.parse(String)
</CODE> on the system default formatter
963 returning
<code>null
</code> if the conversion fails.
964 Otherwise,
<code>null
</code> is returned.
967 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
968 <DT><B>Returns:
</B><DD>the value in the Map as a Number,
<code>null
</code> if null map input
</DL>
973 <A NAME=
"getByte(java.util.Map, java.lang.Object)"><!-- --></A><H3>
976 public static java.lang.Byte
<B>getByte
</B>(java.util.Map
map,
977 java.lang.Object
key)
</PRE>
979 <DD>Gets a Byte from a Map in a null-safe manner.
981 The Byte is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
984 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
985 <DT><B>Returns:
</B><DD>the value in the Map as a Byte,
<code>null
</code> if null map input
</DL>
990 <A NAME=
"getShort(java.util.Map, java.lang.Object)"><!-- --></A><H3>
993 public static java.lang.Short
<B>getShort
</B>(java.util.Map
map,
994 java.lang.Object
key)
</PRE>
996 <DD>Gets a Short from a Map in a null-safe manner.
998 The Short is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1001 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
1002 <DT><B>Returns:
</B><DD>the value in the Map as a Short,
<code>null
</code> if null map input
</DL>
1007 <A NAME=
"getInteger(java.util.Map, java.lang.Object)"><!-- --></A><H3>
1010 public static java.lang.Integer
<B>getInteger
</B>(java.util.Map
map,
1011 java.lang.Object
key)
</PRE>
1013 <DD>Gets a Integer from a Map in a null-safe manner.
1015 The Integer is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1018 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
1019 <DT><B>Returns:
</B><DD>the value in the Map as a Integer,
<code>null
</code> if null map input
</DL>
1024 <A NAME=
"getLong(java.util.Map, java.lang.Object)"><!-- --></A><H3>
1027 public static java.lang.Long
<B>getLong
</B>(java.util.Map
map,
1028 java.lang.Object
key)
</PRE>
1030 <DD>Gets a Long from a Map in a null-safe manner.
1032 The Long is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1035 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
1036 <DT><B>Returns:
</B><DD>the value in the Map as a Long,
<code>null
</code> if null map input
</DL>
1041 <A NAME=
"getFloat(java.util.Map, java.lang.Object)"><!-- --></A><H3>
1044 public static java.lang.Float
<B>getFloat
</B>(java.util.Map
map,
1045 java.lang.Object
key)
</PRE>
1047 <DD>Gets a Float from a Map in a null-safe manner.
1049 The Float is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1052 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
1053 <DT><B>Returns:
</B><DD>the value in the Map as a Float,
<code>null
</code> if null map input
</DL>
1058 <A NAME=
"getDouble(java.util.Map, java.lang.Object)"><!-- --></A><H3>
1061 public static java.lang.Double
<B>getDouble
</B>(java.util.Map
map,
1062 java.lang.Object
key)
</PRE>
1064 <DD>Gets a Double from a Map in a null-safe manner.
1066 The Double is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1069 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
1070 <DT><B>Returns:
</B><DD>the value in the Map as a Double,
<code>null
</code> if null map input
</DL>
1075 <A NAME=
"getMap(java.util.Map, java.lang.Object)"><!-- --></A><H3>
1078 public static java.util.Map
<B>getMap
</B>(java.util.Map
map,
1079 java.lang.Object
key)
</PRE>
1081 <DD>Gets a Map from a Map in a null-safe manner.
1083 If the value returned from the specified map is not a Map then
1084 <code>null
</code> is returned.
1087 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
1088 <DT><B>Returns:
</B><DD>the value in the Map as a Map,
<code>null
</code> if null map input
</DL>
1093 <A NAME=
"getObject(java.util.Map, java.lang.Object, java.lang.Object)"><!-- --></A><H3>
1096 public static java.lang.Object
<B>getObject
</B>(java.util.Map
map,
1097 java.lang.Object
key,
1098 java.lang.Object
defaultValue)
</PRE>
1100 <DD>Looks up the given key in the given map, converting null into the
1101 given default value.
1104 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map whose value to look up
<DD><CODE>key
</CODE> - the key of the value to look up in that map
<DD><CODE>defaultValue
</CODE> - what to return if the value is null
1105 <DT><B>Returns:
</B><DD>the value in the map, or defaultValue if the original value
1106 is null or the map is null
</DL>
1111 <A NAME=
"getString(java.util.Map, java.lang.Object, java.lang.String)"><!-- --></A><H3>
1114 public static java.lang.String
<B>getString
</B>(java.util.Map
map,
1115 java.lang.Object
key,
1116 java.lang.String
defaultValue)
</PRE>
1118 <DD>Looks up the given key in the given map, converting the result into
1119 a string, using the default value if the the conversion fails.
1122 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map whose value to look up
<DD><CODE>key
</CODE> - the key of the value to look up in that map
<DD><CODE>defaultValue
</CODE> - what to return if the value is null or if the
1124 <DT><B>Returns:
</B><DD>the value in the map as a string, or defaultValue if the
1125 original value is null, the map is null or the string conversion
1131 <A NAME=
"getBoolean(java.util.Map, java.lang.Object, java.lang.Boolean)"><!-- --></A><H3>
1134 public static java.lang.Boolean
<B>getBoolean
</B>(java.util.Map
map,
1135 java.lang.Object
key,
1136 java.lang.Boolean
defaultValue)
</PRE>
1138 <DD>Looks up the given key in the given map, converting the result into
1139 a boolean, using the default value if the the conversion fails.
1142 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map whose value to look up
<DD><CODE>key
</CODE> - the key of the value to look up in that map
<DD><CODE>defaultValue
</CODE> - what to return if the value is null or if the
1144 <DT><B>Returns:
</B><DD>the value in the map as a boolean, or defaultValue if the
1145 original value is null, the map is null or the boolean conversion
1151 <A NAME=
"getNumber(java.util.Map, java.lang.Object, java.lang.Number)"><!-- --></A><H3>
1154 public static java.lang.Number
<B>getNumber
</B>(java.util.Map
map,
1155 java.lang.Object
key,
1156 java.lang.Number
defaultValue)
</PRE>
1158 <DD>Looks up the given key in the given map, converting the result into
1159 a number, using the default value if the the conversion fails.
1162 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map whose value to look up
<DD><CODE>key
</CODE> - the key of the value to look up in that map
<DD><CODE>defaultValue
</CODE> - what to return if the value is null or if the
1164 <DT><B>Returns:
</B><DD>the value in the map as a number, or defaultValue if the
1165 original value is null, the map is null or the number conversion
1171 <A NAME=
"getByte(java.util.Map, java.lang.Object, java.lang.Byte)"><!-- --></A><H3>
1174 public static java.lang.Byte
<B>getByte
</B>(java.util.Map
map,
1175 java.lang.Object
key,
1176 java.lang.Byte
defaultValue)
</PRE>
1178 <DD>Looks up the given key in the given map, converting the result into
1179 a byte, using the default value if the the conversion fails.
1182 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map whose value to look up
<DD><CODE>key
</CODE> - the key of the value to look up in that map
<DD><CODE>defaultValue
</CODE> - what to return if the value is null or if the
1184 <DT><B>Returns:
</B><DD>the value in the map as a number, or defaultValue if the
1185 original value is null, the map is null or the number conversion
1191 <A NAME=
"getShort(java.util.Map, java.lang.Object, java.lang.Short)"><!-- --></A><H3>
1194 public static java.lang.Short
<B>getShort
</B>(java.util.Map
map,
1195 java.lang.Object
key,
1196 java.lang.Short
defaultValue)
</PRE>
1198 <DD>Looks up the given key in the given map, converting the result into
1199 a short, using the default value if the the conversion fails.
1202 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map whose value to look up
<DD><CODE>key
</CODE> - the key of the value to look up in that map
<DD><CODE>defaultValue
</CODE> - what to return if the value is null or if the
1204 <DT><B>Returns:
</B><DD>the value in the map as a number, or defaultValue if the
1205 original value is null, the map is null or the number conversion
1211 <A NAME=
"getInteger(java.util.Map, java.lang.Object, java.lang.Integer)"><!-- --></A><H3>
1214 public static java.lang.Integer
<B>getInteger
</B>(java.util.Map
map,
1215 java.lang.Object
key,
1216 java.lang.Integer
defaultValue)
</PRE>
1218 <DD>Looks up the given key in the given map, converting the result into
1219 an integer, using the default value if the the conversion fails.
1222 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map whose value to look up
<DD><CODE>key
</CODE> - the key of the value to look up in that map
<DD><CODE>defaultValue
</CODE> - what to return if the value is null or if the
1224 <DT><B>Returns:
</B><DD>the value in the map as a number, or defaultValue if the
1225 original value is null, the map is null or the number conversion
1231 <A NAME=
"getLong(java.util.Map, java.lang.Object, java.lang.Long)"><!-- --></A><H3>
1234 public static java.lang.Long
<B>getLong
</B>(java.util.Map
map,
1235 java.lang.Object
key,
1236 java.lang.Long
defaultValue)
</PRE>
1238 <DD>Looks up the given key in the given map, converting the result into
1239 a long, using the default value if the the conversion fails.
1242 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map whose value to look up
<DD><CODE>key
</CODE> - the key of the value to look up in that map
<DD><CODE>defaultValue
</CODE> - what to return if the value is null or if the
1244 <DT><B>Returns:
</B><DD>the value in the map as a number, or defaultValue if the
1245 original value is null, the map is null or the number conversion
1251 <A NAME=
"getFloat(java.util.Map, java.lang.Object, java.lang.Float)"><!-- --></A><H3>
1254 public static java.lang.Float
<B>getFloat
</B>(java.util.Map
map,
1255 java.lang.Object
key,
1256 java.lang.Float
defaultValue)
</PRE>
1258 <DD>Looks up the given key in the given map, converting the result into
1259 a float, using the default value if the the conversion fails.
1262 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map whose value to look up
<DD><CODE>key
</CODE> - the key of the value to look up in that map
<DD><CODE>defaultValue
</CODE> - what to return if the value is null or if the
1264 <DT><B>Returns:
</B><DD>the value in the map as a number, or defaultValue if the
1265 original value is null, the map is null or the number conversion
1271 <A NAME=
"getDouble(java.util.Map, java.lang.Object, java.lang.Double)"><!-- --></A><H3>
1274 public static java.lang.Double
<B>getDouble
</B>(java.util.Map
map,
1275 java.lang.Object
key,
1276 java.lang.Double
defaultValue)
</PRE>
1278 <DD>Looks up the given key in the given map, converting the result into
1279 a double, using the default value if the the conversion fails.
1282 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map whose value to look up
<DD><CODE>key
</CODE> - the key of the value to look up in that map
<DD><CODE>defaultValue
</CODE> - what to return if the value is null or if the
1284 <DT><B>Returns:
</B><DD>the value in the map as a number, or defaultValue if the
1285 original value is null, the map is null or the number conversion
1291 <A NAME=
"getMap(java.util.Map, java.lang.Object, java.util.Map)"><!-- --></A><H3>
1294 public static java.util.Map
<B>getMap
</B>(java.util.Map
map,
1295 java.lang.Object
key,
1296 java.util.Map
defaultValue)
</PRE>
1298 <DD>Looks up the given key in the given map, converting the result into
1299 a map, using the default value if the the conversion fails.
1302 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map whose value to look up
<DD><CODE>key
</CODE> - the key of the value to look up in that map
<DD><CODE>defaultValue
</CODE> - what to return if the value is null or if the
1304 <DT><B>Returns:
</B><DD>the value in the map as a number, or defaultValue if the
1305 original value is null, the map is null or the map conversion
1311 <A NAME=
"getBooleanValue(java.util.Map, java.lang.Object)"><!-- --></A><H3>
1312 getBooleanValue
</H3>
1314 public static boolean
<B>getBooleanValue
</B>(java.util.Map
map,
1315 java.lang.Object
key)
</PRE>
1317 <DD>Gets a boolean from a Map in a null-safe manner.
1319 If the value is a
<code>Boolean
</code> its value is returned.
1320 If the value is a
<code>String
</code> and it equals 'true' ignoring case
1321 then
<code>true
</code> is returned, otherwise
<code>false
</code>.
1322 If the value is a
<code>Number
</code> an integer zero value returns
1323 <code>false
</code> and non-zero returns
<code>true
</code>.
1324 Otherwise,
<code>false
</code> is returned.
1327 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
1328 <DT><B>Returns:
</B><DD>the value in the Map as a Boolean,
<code>false
</code> if null map input
</DL>
1333 <A NAME=
"getByteValue(java.util.Map, java.lang.Object)"><!-- --></A><H3>
1336 public static byte
<B>getByteValue
</B>(java.util.Map
map,
1337 java.lang.Object
key)
</PRE>
1339 <DD>Gets a byte from a Map in a null-safe manner.
1341 The byte is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1344 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
1345 <DT><B>Returns:
</B><DD>the value in the Map as a byte,
<code>0</code> if null map input
</DL>
1350 <A NAME=
"getShortValue(java.util.Map, java.lang.Object)"><!-- --></A><H3>
1353 public static short
<B>getShortValue
</B>(java.util.Map
map,
1354 java.lang.Object
key)
</PRE>
1356 <DD>Gets a short from a Map in a null-safe manner.
1358 The short is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1361 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
1362 <DT><B>Returns:
</B><DD>the value in the Map as a short,
<code>0</code> if null map input
</DL>
1367 <A NAME=
"getIntValue(java.util.Map, java.lang.Object)"><!-- --></A><H3>
1370 public static int
<B>getIntValue
</B>(java.util.Map
map,
1371 java.lang.Object
key)
</PRE>
1373 <DD>Gets an int from a Map in a null-safe manner.
1375 The int is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1378 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
1379 <DT><B>Returns:
</B><DD>the value in the Map as an int,
<code>0</code> if null map input
</DL>
1384 <A NAME=
"getLongValue(java.util.Map, java.lang.Object)"><!-- --></A><H3>
1387 public static long
<B>getLongValue
</B>(java.util.Map
map,
1388 java.lang.Object
key)
</PRE>
1390 <DD>Gets a long from a Map in a null-safe manner.
1392 The long is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1395 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
1396 <DT><B>Returns:
</B><DD>the value in the Map as a long,
<code>0L</code> if null map input
</DL>
1401 <A NAME=
"getFloatValue(java.util.Map, java.lang.Object)"><!-- --></A><H3>
1404 public static float
<B>getFloatValue
</B>(java.util.Map
map,
1405 java.lang.Object
key)
</PRE>
1407 <DD>Gets a float from a Map in a null-safe manner.
1409 The float is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1412 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
1413 <DT><B>Returns:
</B><DD>the value in the Map as a float,
<code>0.0F
</code> if null map input
</DL>
1418 <A NAME=
"getDoubleValue(java.util.Map, java.lang.Object)"><!-- --></A><H3>
1421 public static double
<B>getDoubleValue
</B>(java.util.Map
map,
1422 java.lang.Object
key)
</PRE>
1424 <DD>Gets a double from a Map in a null-safe manner.
1426 The double is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1429 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
1430 <DT><B>Returns:
</B><DD>the value in the Map as a double,
<code>0.0</code> if null map input
</DL>
1435 <A NAME=
"getBooleanValue(java.util.Map, java.lang.Object, boolean)"><!-- --></A><H3>
1436 getBooleanValue
</H3>
1438 public static boolean
<B>getBooleanValue
</B>(java.util.Map
map,
1439 java.lang.Object
key,
1440 boolean
defaultValue)
</PRE>
1442 <DD>Gets a boolean from a Map in a null-safe manner,
1443 using the default value if the the conversion fails.
1445 If the value is a
<code>Boolean
</code> its value is returned.
1446 If the value is a
<code>String
</code> and it equals 'true' ignoring case
1447 then
<code>true
</code> is returned, otherwise
<code>false
</code>.
1448 If the value is a
<code>Number
</code> an integer zero value returns
1449 <code>false
</code> and non-zero returns
<code>true
</code>.
1450 Otherwise,
<code>defaultValue
</code> is returned.
1453 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
<DD><CODE>defaultValue
</CODE> - return if the value is null or if the
1455 <DT><B>Returns:
</B><DD>the value in the Map as a Boolean,
<code>defaultValue
</code> if null map input
</DL>
1460 <A NAME=
"getByteValue(java.util.Map, java.lang.Object, byte)"><!-- --></A><H3>
1463 public static byte
<B>getByteValue
</B>(java.util.Map
map,
1464 java.lang.Object
key,
1465 byte
defaultValue)
</PRE>
1467 <DD>Gets a byte from a Map in a null-safe manner,
1468 using the default value if the the conversion fails.
1470 The byte is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1473 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
<DD><CODE>defaultValue
</CODE> - return if the value is null or if the
1475 <DT><B>Returns:
</B><DD>the value in the Map as a byte,
<code>defaultValue
</code> if null map input
</DL>
1480 <A NAME=
"getShortValue(java.util.Map, java.lang.Object, short)"><!-- --></A><H3>
1483 public static short
<B>getShortValue
</B>(java.util.Map
map,
1484 java.lang.Object
key,
1485 short
defaultValue)
</PRE>
1487 <DD>Gets a short from a Map in a null-safe manner,
1488 using the default value if the the conversion fails.
1490 The short is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1493 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
<DD><CODE>defaultValue
</CODE> - return if the value is null or if the
1495 <DT><B>Returns:
</B><DD>the value in the Map as a short,
<code>defaultValue
</code> if null map input
</DL>
1500 <A NAME=
"getIntValue(java.util.Map, java.lang.Object, int)"><!-- --></A><H3>
1503 public static int
<B>getIntValue
</B>(java.util.Map
map,
1504 java.lang.Object
key,
1505 int
defaultValue)
</PRE>
1507 <DD>Gets an int from a Map in a null-safe manner,
1508 using the default value if the the conversion fails.
1510 The int is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1513 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
<DD><CODE>defaultValue
</CODE> - return if the value is null or if the
1515 <DT><B>Returns:
</B><DD>the value in the Map as an int,
<code>defaultValue
</code> if null map input
</DL>
1520 <A NAME=
"getLongValue(java.util.Map, java.lang.Object, long)"><!-- --></A><H3>
1523 public static long
<B>getLongValue
</B>(java.util.Map
map,
1524 java.lang.Object
key,
1525 long
defaultValue)
</PRE>
1527 <DD>Gets a long from a Map in a null-safe manner,
1528 using the default value if the the conversion fails.
1530 The long is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1533 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
<DD><CODE>defaultValue
</CODE> - return if the value is null or if the
1535 <DT><B>Returns:
</B><DD>the value in the Map as a long,
<code>defaultValue
</code> if null map input
</DL>
1540 <A NAME=
"getFloatValue(java.util.Map, java.lang.Object, float)"><!-- --></A><H3>
1543 public static float
<B>getFloatValue
</B>(java.util.Map
map,
1544 java.lang.Object
key,
1545 float
defaultValue)
</PRE>
1547 <DD>Gets a float from a Map in a null-safe manner,
1548 using the default value if the the conversion fails.
1550 The float is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1553 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
<DD><CODE>defaultValue
</CODE> - return if the value is null or if the
1555 <DT><B>Returns:
</B><DD>the value in the Map as a float,
<code>defaultValue
</code> if null map input
</DL>
1560 <A NAME=
"getDoubleValue(java.util.Map, java.lang.Object, double)"><!-- --></A><H3>
1563 public static double
<B>getDoubleValue
</B>(java.util.Map
map,
1564 java.lang.Object
key,
1565 double
defaultValue)
</PRE>
1567 <DD>Gets a double from a Map in a null-safe manner,
1568 using the default value if the the conversion fails.
1570 The double is obtained from the results of
<A HREF=
"../../../../org/apache/commons/collections/MapUtils.html#getNumber(java.util.Map, java.lang.Object)"><CODE>getNumber(Map,Object)
</CODE></A>.
1573 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to use
<DD><CODE>key
</CODE> - the key to look up
<DD><CODE>defaultValue
</CODE> - return if the value is null or if the
1575 <DT><B>Returns:
</B><DD>the value in the Map as a double,
<code>defaultValue
</code> if null map input
</DL>
1580 <A NAME=
"toProperties(java.util.Map)"><!-- --></A><H3>
1583 public static java.util.Properties
<B>toProperties
</B>(java.util.Map
map)
</PRE>
1585 <DD>Gets a new Properties object initialised with the values from a Map.
1586 A null input will return an empty properties object.
1589 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to convert to a Properties object, may not be null
1590 <DT><B>Returns:
</B><DD>the properties object
</DL>
1595 <A NAME=
"toMap(java.util.ResourceBundle)"><!-- --></A><H3>
1598 public static java.util.Map
<B>toMap
</B>(java.util.ResourceBundle
resourceBundle)
</PRE>
1600 <DD>Creates a new HashMap using data copied from a ResourceBundle.
1603 <DT><B>Parameters:
</B><DD><CODE>resourceBundle
</CODE> - the resource bundle to convert, may not be null
1604 <DT><B>Returns:
</B><DD>the hashmap containing the data
1606 <DD><CODE>java.lang.NullPointerException
</CODE> - if the bundle is null
</DL>
1611 <A NAME=
"verbosePrint(java.io.PrintStream, java.lang.Object, java.util.Map)"><!-- --></A><H3>
1614 public static void
<B>verbosePrint
</B>(java.io.PrintStream
out,
1615 java.lang.Object
label,
1616 java.util.Map
map)
</PRE>
1618 <DD>Prints the given map with nice line breaks.
1620 This method prints a nicely formatted String describing the Map.
1621 Each map entry will be printed with key and value.
1622 When the value is a Map, recursive behaviour occurs.
1624 This method is NOT thread-safe in any special way. You must manually
1625 synchronize on either this class or the stream as required.
1628 <DT><B>Parameters:
</B><DD><CODE>out
</CODE> - the stream to print to, must not be null
<DD><CODE>label
</CODE> - The label to be used, may be
<code>null
</code>.
1629 If
<code>null
</code>, the label is not output.
1630 It typically represents the name of the property in a bean or similar.
<DD><CODE>map
</CODE> - The map to print, may be
<code>null
</code>.
1631 If
<code>null
</code>, the text 'null' is output.
1633 <DD><CODE>java.lang.NullPointerException
</CODE> - if the stream is
<code>null
</code></DL>
1638 <A NAME=
"debugPrint(java.io.PrintStream, java.lang.Object, java.util.Map)"><!-- --></A><H3>
1641 public static void
<B>debugPrint
</B>(java.io.PrintStream
out,
1642 java.lang.Object
label,
1643 java.util.Map
map)
</PRE>
1645 <DD>Prints the given map with nice line breaks.
1647 This method prints a nicely formatted String describing the Map.
1648 Each map entry will be printed with key, value and value classname.
1649 When the value is a Map, recursive behaviour occurs.
1651 This method is NOT thread-safe in any special way. You must manually
1652 synchronize on either this class or the stream as required.
1655 <DT><B>Parameters:
</B><DD><CODE>out
</CODE> - the stream to print to, must not be null
<DD><CODE>label
</CODE> - The label to be used, may be
<code>null
</code>.
1656 If
<code>null
</code>, the label is not output.
1657 It typically represents the name of the property in a bean or similar.
<DD><CODE>map
</CODE> - The map to print, may be
<code>null
</code>.
1658 If
<code>null
</code>, the text 'null' is output.
1660 <DD><CODE>java.lang.NullPointerException
</CODE> - if the stream is
<code>null
</code></DL>
1665 <A NAME=
"logInfo(java.lang.Exception)"><!-- --></A><H3>
1668 protected static void
<B>logInfo
</B>(java.lang.Exception
ex)
</PRE>
1670 <DD>Logs the given exception to
<code>System.out
</code>.
1672 This method exists as Jakarta Collections does not depend on logging.
1675 <DT><B>Parameters:
</B><DD><CODE>ex
</CODE> - the exception to log
</DL>
1680 <A NAME=
"invertMap(java.util.Map)"><!-- --></A><H3>
1683 public static java.util.Map
<B>invertMap
</B>(java.util.Map
map)
</PRE>
1685 <DD>Inverts the supplied map returning a new HashMap such that the keys of
1686 the input are swapped with the values.
1688 This operation assumes that the inverse mapping is well defined.
1689 If the input map had multiple entries with the same value mapped to
1690 different keys, the returned map will map one of those keys to the
1691 value, but the exact key which will be mapped is undefined.
1694 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to invert, may not be null
1695 <DT><B>Returns:
</B><DD>a new HashMap containing the inverted data
1697 <DD><CODE>java.lang.NullPointerException
</CODE> - if the map is null
</DL>
1702 <A NAME=
"safeAddToMap(java.util.Map, java.lang.Object, java.lang.Object)"><!-- --></A><H3>
1705 public static void
<B>safeAddToMap
</B>(java.util.Map
map,
1706 java.lang.Object
key,
1707 java.lang.Object
value)
1708 throws java.lang.NullPointerException
</PRE>
1710 <DD>Protects against adding null values to a map.
1712 This method checks the value being added to the map, and if it is null
1713 it is replaced by an empty string.
1715 This could be useful if the map does not accept null values, or for
1716 receiving data from a source that may provide null or empty string
1717 which should be held in the same way in the map.
1719 Keys are not validated.
1722 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to add to, may not be null
<DD><CODE>key
</CODE> - the key
<DD><CODE>value
</CODE> - the value, null converted to
""
1724 <DD><CODE>java.lang.NullPointerException
</CODE> - if the map is null
</DL>
1729 <A NAME=
"putAll(java.util.Map, java.lang.Object[])"><!-- --></A><H3>
1732 public static java.util.Map
<B>putAll
</B>(java.util.Map
map,
1733 java.lang.Object[]
array)
</PRE>
1735 <DD>Puts all the keys and values from the specified array into the map.
1737 This method is an alternative to the
<CODE>Map.putAll(java.util.Map)
</CODE>
1738 method and constructors. It allows you to build a map from an object array
1739 of various possible styles.
1741 If the first entry in the object array implements
<CODE>Map.Entry
</CODE>
1742 or
<A HREF=
"../../../../org/apache/commons/collections/KeyValue.html" title=
"interface in org.apache.commons.collections"><CODE>KeyValue
</CODE></A> then the key and value are added from that object.
1743 If the first entry in the object array is an object array itself, then
1744 it is assumed that index
0 in the sub-array is the key and index
1 is the value.
1745 Otherwise, the array is treated as keys and values in alternate indices.
1747 For example, to create a color map:
1749 Map colorMap = MapUtils.putAll(new HashMap(), new String[][] {
1751 {
"GREEN",
"#00FF00"},
1757 Map colorMap = MapUtils.putAll(new HashMap(), new String[] {
1765 Map colorMap = MapUtils.putAll(new HashMap(), new Map.Entry[] {
1766 new DefaultMapEntry(
"RED",
"#FF0000"),
1767 new DefaultMapEntry(
"GREEN",
"#00FF00"),
1768 new DefaultMapEntry(
"BLUE",
"#0000FF")
1773 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to populate, must not be null
<DD><CODE>array
</CODE> - an array to populate from, null ignored
1774 <DT><B>Returns:
</B><DD>the input map
1776 <DD><CODE>java.lang.NullPointerException
</CODE> - if map is null
1777 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if sub-array or entry matching used and an
1779 <DD><CODE>java.lang.ClassCastException
</CODE> - if the array contents is mixed
<DT><B>Since:
</B></DT>
1780 <DD>Commons Collections
3.2</DD>
1786 <A NAME=
"isEmpty(java.util.Map)"><!-- --></A><H3>
1789 public static boolean
<B>isEmpty
</B>(java.util.Map
map)
</PRE>
1791 <DD>Null-safe check if the specified map is empty.
1796 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to check, may be null
1797 <DT><B>Returns:
</B><DD>true if empty or null
<DT><B>Since:
</B></DT>
1798 <DD>Commons Collections
3.2</DD>
1804 <A NAME=
"isNotEmpty(java.util.Map)"><!-- --></A><H3>
1807 public static boolean
<B>isNotEmpty
</B>(java.util.Map
map)
</PRE>
1809 <DD>Null-safe check if the specified map is not empty.
1814 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to check, may be null
1815 <DT><B>Returns:
</B><DD>true if non-null and non-empty
<DT><B>Since:
</B></DT>
1816 <DD>Commons Collections
3.2</DD>
1822 <A NAME=
"synchronizedMap(java.util.Map)"><!-- --></A><H3>
1823 synchronizedMap
</H3>
1825 public static java.util.Map
<B>synchronizedMap
</B>(java.util.Map
map)
</PRE>
1827 <DD>Returns a synchronized map backed by the given map.
1829 You must manually synchronize on the returned buffer's iterator to
1830 avoid non-deterministic behavior:
1833 Map m = MapUtils.synchronizedMap(myMap);
1834 Set s = m.keySet(); // outside synchronized block
1835 synchronized (m) { // synchronized on MAP!
1836 Iterator i = s.iterator();
1837 while (i.hasNext()) {
1843 This method uses the implementation in
<CODE>Collections
</CODE>.
1846 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to synchronize, must not be null
1847 <DT><B>Returns:
</B><DD>a synchronized map backed by the given map
1849 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the map is null
</DL>
1854 <A NAME=
"unmodifiableMap(java.util.Map)"><!-- --></A><H3>
1855 unmodifiableMap
</H3>
1857 public static java.util.Map
<B>unmodifiableMap
</B>(java.util.Map
map)
</PRE>
1859 <DD>Returns an unmodifiable map backed by the given map.
1861 This method uses the implementation in the decorators subpackage.
1864 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to make unmodifiable, must not be null
1865 <DT><B>Returns:
</B><DD>an unmodifiable map backed by the given map
1867 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the map is null
</DL>
1872 <A NAME=
"predicatedMap(java.util.Map, org.apache.commons.collections.Predicate, org.apache.commons.collections.Predicate)"><!-- --></A><H3>
1875 public static java.util.Map
<B>predicatedMap
</B>(java.util.Map
map,
1876 <A HREF=
"../../../../org/apache/commons/collections/Predicate.html" title=
"interface in org.apache.commons.collections">Predicate
</A> keyPred,
1877 <A HREF=
"../../../../org/apache/commons/collections/Predicate.html" title=
"interface in org.apache.commons.collections">Predicate
</A> valuePred)
</PRE>
1879 <DD>Returns a predicated (validating) map backed by the given map.
1881 Only objects that pass the tests in the given predicates can be added to the map.
1882 Trying to add an invalid object results in an IllegalArgumentException.
1883 Keys must pass the key predicate, values must pass the value predicate.
1884 It is important not to use the original map after invoking this method,
1885 as it is a backdoor for adding invalid objects.
1888 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to predicate, must not be null
<DD><CODE>keyPred
</CODE> - the predicate for keys, null means no check
<DD><CODE>valuePred
</CODE> - the predicate for values, null means no check
1889 <DT><B>Returns:
</B><DD>a predicated map backed by the given map
1891 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the Map is null
</DL>
1896 <A NAME=
"typedMap(java.util.Map, java.lang.Class, java.lang.Class)"><!-- --></A><H3>
1899 public static java.util.Map
<B>typedMap
</B>(java.util.Map
map,
1900 java.lang.Class
keyType,
1901 java.lang.Class
valueType)
</PRE>
1903 <DD>Returns a typed map backed by the given map.
1905 Only keys and values of the specified types can be added to the map.
1908 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to limit to a specific type, must not be null
<DD><CODE>keyType
</CODE> - the type of keys which may be added to the map, must not be null
<DD><CODE>valueType
</CODE> - the type of values which may be added to the map, must not be null
1909 <DT><B>Returns:
</B><DD>a typed map backed by the specified map
1911 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the Map or Class is null
</DL>
1916 <A NAME=
"transformedMap(java.util.Map, org.apache.commons.collections.Transformer, org.apache.commons.collections.Transformer)"><!-- --></A><H3>
1919 public static java.util.Map
<B>transformedMap
</B>(java.util.Map
map,
1920 <A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> keyTransformer,
1921 <A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> valueTransformer)
</PRE>
1923 <DD>Returns a transformed map backed by the given map.
1925 This method returns a new map (decorating the specified map) that
1926 will transform any new entries added to it.
1927 Existing entries in the specified map will not be transformed.
1928 If you want that behaviour, see
<A HREF=
"../../../../org/apache/commons/collections/map/TransformedMap.html#decorateTransform(java.util.Map, org.apache.commons.collections.Transformer, org.apache.commons.collections.Transformer)"><CODE>TransformedMap.decorateTransform(java.util.Map, org.apache.commons.collections.Transformer, org.apache.commons.collections.Transformer)
</CODE></A>.
1930 Each object is passed through the transformers as it is added to the
1931 Map. It is important not to use the original map after invoking this
1932 method, as it is a backdoor for adding untransformed objects.
1934 If there are any elements already in the map being decorated, they
1935 are NOT transformed.
1938 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to transform, must not be null, typically empty
<DD><CODE>keyTransformer
</CODE> - the transformer for the map keys, null means no transformation
<DD><CODE>valueTransformer
</CODE> - the transformer for the map values, null means no transformation
1939 <DT><B>Returns:
</B><DD>a transformed map backed by the given map
1941 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the Map is null
</DL>
1946 <A NAME=
"fixedSizeMap(java.util.Map)"><!-- --></A><H3>
1949 public static java.util.Map
<B>fixedSizeMap
</B>(java.util.Map
map)
</PRE>
1951 <DD>Returns a fixed-sized map backed by the given map.
1952 Elements may not be added or removed from the returned map, but
1953 existing elements can be changed (for instance, via the
1954 <CODE>Map.put(Object,Object)
</CODE> method).
1957 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map whose size to fix, must not be null
1958 <DT><B>Returns:
</B><DD>a fixed-size map backed by that map
1960 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the Map is null
</DL>
1965 <A NAME=
"lazyMap(java.util.Map, org.apache.commons.collections.Factory)"><!-- --></A><H3>
1968 public static java.util.Map
<B>lazyMap
</B>(java.util.Map
map,
1969 <A HREF=
"../../../../org/apache/commons/collections/Factory.html" title=
"interface in org.apache.commons.collections">Factory
</A> factory)
</PRE>
1971 <DD>Returns a
"lazy" map whose values will be created on demand.
1973 When the key passed to the returned map's
<CODE>Map.get(Object)
</CODE>
1974 method is not present in the map, then the factory will be used
1975 to create a new object and that object will become the value
1976 associated with that key.
1980 Factory factory = new Factory() {
1981 public Object create() {
1985 Map lazyMap = MapUtils.lazyMap(new HashMap(), factory);
1986 Object obj = lazyMap.get(
"test");
1989 After the above code is executed,
<code>obj
</code> will contain
1990 a new
<code>Date
</code> instance. Furthermore, that
<code>Date
</code>
1991 instance is the value for the
<code>"test"</code> key in the map.
1994 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to make lazy, must not be null
<DD><CODE>factory
</CODE> - the factory for creating new objects, must not be null
1995 <DT><B>Returns:
</B><DD>a lazy map backed by the given map
1997 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the Map or Factory is null
</DL>
2002 <A NAME=
"lazyMap(java.util.Map, org.apache.commons.collections.Transformer)"><!-- --></A><H3>
2005 public static java.util.Map
<B>lazyMap
</B>(java.util.Map
map,
2006 <A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> transformerFactory)
</PRE>
2008 <DD>Returns a
"lazy" map whose values will be created on demand.
2010 When the key passed to the returned map's
<CODE>Map.get(Object)
</CODE>
2011 method is not present in the map, then the factory will be used
2012 to create a new object and that object will become the value
2013 associated with that key. The factory is a
<A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections"><CODE>Transformer
</CODE></A>
2014 that will be passed the key which it must transform into the value.
2018 Transformer factory = new Transformer() {
2019 public Object transform(Object mapKey) {
2020 return new File(mapKey);
2023 Map lazyMap = MapUtils.lazyMap(new HashMap(), factory);
2024 Object obj = lazyMap.get(
"C:/dev");
2027 After the above code is executed,
<code>obj
</code> will contain
2028 a new
<code>File
</code> instance for the C drive dev directory.
2029 Furthermore, that
<code>File
</code> instance is the value for the
2030 <code>"C:/dev"</code> key in the map.
2032 If a lazy map is wrapped by a synchronized map, the result is a simple
2033 synchronized cache. When an object is not is the cache, the cache itself
2034 calls back to the factory Transformer to populate itself, all within the
2035 same synchronized block.
2038 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to make lazy, must not be null
<DD><CODE>transformerFactory
</CODE> - the factory for creating new objects, must not be null
2039 <DT><B>Returns:
</B><DD>a lazy map backed by the given map
2041 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the Map or Transformer is null
</DL>
2046 <A NAME=
"orderedMap(java.util.Map)"><!-- --></A><H3>
2049 public static java.util.Map
<B>orderedMap
</B>(java.util.Map
map)
</PRE>
2051 <DD>Returns a map that maintains the order of keys that are added
2052 backed by the given map.
2054 If a key is added twice, the order is determined by the first add.
2055 The order is observed through the keySet, values and entrySet.
2058 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to order, must not be null
2059 <DT><B>Returns:
</B><DD>an ordered map backed by the given map
2061 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the Map is null
</DL>
2066 <A NAME=
"multiValueMap(java.util.Map)"><!-- --></A><H3>
2069 public static java.util.Map
<B>multiValueMap
</B>(java.util.Map
map)
</PRE>
2071 <DD>Creates a mult-value map backed by the given map which returns
2072 collections of type ArrayList.
2075 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to decorate
2076 <DT><B>Returns:
</B><DD>a multi-value map backed by the given map which returns ArrayLists of values.
<DT><B>Since:
</B></DT>
2077 <DD>Commons Collections
3.2</DD>
2078 <DT><B>See Also:
</B><DD><A HREF=
"../../../../org/apache/commons/collections/map/MultiValueMap.html" title=
"class in org.apache.commons.collections.map"><CODE>MultiValueMap
</CODE></A></DL>
2083 <A NAME=
"multiValueMap(java.util.Map, java.lang.Class)"><!-- --></A><H3>
2086 public static java.util.Map
<B>multiValueMap
</B>(java.util.Map
map,
2087 java.lang.Class
collectionClass)
</PRE>
2089 <DD>Creates a multi-value map backed by the given map which returns
2090 collections of the specified type.
2093 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to decorate
<DD><CODE>collectionClass
</CODE> - the type of collections to return from the map (must contain public no-arg constructor
2094 and extend Collection).
2095 <DT><B>Returns:
</B><DD>a multi-value map backed by the given map which returns collections of the specified type
<DT><B>Since:
</B></DT>
2096 <DD>Commons Collections
3.2</DD>
2097 <DT><B>See Also:
</B><DD><A HREF=
"../../../../org/apache/commons/collections/map/MultiValueMap.html" title=
"class in org.apache.commons.collections.map"><CODE>MultiValueMap
</CODE></A></DL>
2102 <A NAME=
"multiValueMap(java.util.Map, org.apache.commons.collections.Factory)"><!-- --></A><H3>
2105 public static java.util.Map
<B>multiValueMap
</B>(java.util.Map
map,
2106 <A HREF=
"../../../../org/apache/commons/collections/Factory.html" title=
"interface in org.apache.commons.collections">Factory
</A> collectionFactory)
</PRE>
2108 <DD>Creates a multi-value map backed by the given map which returns
2109 collections created by the specified collection factory.
2112 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to decorate
<DD><CODE>collectionFactory
</CODE> - a factor which creates collection objects
2113 <DT><B>Returns:
</B><DD>a multi-value map backed by the given map which returns collections
2114 created by the specified collection factory
<DT><B>Since:
</B></DT>
2115 <DD>Commons Collections
3.2</DD>
2116 <DT><B>See Also:
</B><DD><A HREF=
"../../../../org/apache/commons/collections/map/MultiValueMap.html" title=
"class in org.apache.commons.collections.map"><CODE>MultiValueMap
</CODE></A></DL>
2121 <A NAME=
"synchronizedSortedMap(java.util.SortedMap)"><!-- --></A><H3>
2122 synchronizedSortedMap
</H3>
2124 public static java.util.Map
<B>synchronizedSortedMap
</B>(java.util.SortedMap
map)
</PRE>
2126 <DD>Returns a synchronized sorted map backed by the given sorted map.
2128 You must manually synchronize on the returned buffer's iterator to
2129 avoid non-deterministic behavior:
2132 Map m = MapUtils.synchronizedSortedMap(myMap);
2133 Set s = m.keySet(); // outside synchronized block
2134 synchronized (m) { // synchronized on MAP!
2135 Iterator i = s.iterator();
2136 while (i.hasNext()) {
2142 This method uses the implementation in
<CODE>Collections
</CODE>.
2145 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to synchronize, must not be null
2146 <DT><B>Returns:
</B><DD>a synchronized map backed by the given map
2148 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the map is null
</DL>
2153 <A NAME=
"unmodifiableSortedMap(java.util.SortedMap)"><!-- --></A><H3>
2154 unmodifiableSortedMap
</H3>
2156 public static java.util.Map
<B>unmodifiableSortedMap
</B>(java.util.SortedMap
map)
</PRE>
2158 <DD>Returns an unmodifiable sorted map backed by the given sorted map.
2160 This method uses the implementation in the decorators subpackage.
2163 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the sorted map to make unmodifiable, must not be null
2164 <DT><B>Returns:
</B><DD>an unmodifiable map backed by the given map
2166 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the map is null
</DL>
2171 <A NAME=
"predicatedSortedMap(java.util.SortedMap, org.apache.commons.collections.Predicate, org.apache.commons.collections.Predicate)"><!-- --></A><H3>
2172 predicatedSortedMap
</H3>
2174 public static java.util.SortedMap
<B>predicatedSortedMap
</B>(java.util.SortedMap
map,
2175 <A HREF=
"../../../../org/apache/commons/collections/Predicate.html" title=
"interface in org.apache.commons.collections">Predicate
</A> keyPred,
2176 <A HREF=
"../../../../org/apache/commons/collections/Predicate.html" title=
"interface in org.apache.commons.collections">Predicate
</A> valuePred)
</PRE>
2178 <DD>Returns a predicated (validating) sorted map backed by the given map.
2180 Only objects that pass the tests in the given predicates can be added to the map.
2181 Trying to add an invalid object results in an IllegalArgumentException.
2182 Keys must pass the key predicate, values must pass the value predicate.
2183 It is important not to use the original map after invoking this method,
2184 as it is a backdoor for adding invalid objects.
2187 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to predicate, must not be null
<DD><CODE>keyPred
</CODE> - the predicate for keys, null means no check
<DD><CODE>valuePred
</CODE> - the predicate for values, null means no check
2188 <DT><B>Returns:
</B><DD>a predicated map backed by the given map
2190 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the SortedMap is null
</DL>
2195 <A NAME=
"typedSortedMap(java.util.SortedMap, java.lang.Class, java.lang.Class)"><!-- --></A><H3>
2198 public static java.util.SortedMap
<B>typedSortedMap
</B>(java.util.SortedMap
map,
2199 java.lang.Class
keyType,
2200 java.lang.Class
valueType)
</PRE>
2202 <DD>Returns a typed sorted map backed by the given map.
2204 Only keys and values of the specified types can be added to the map.
2207 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to limit to a specific type, must not be null
<DD><CODE>keyType
</CODE> - the type of keys which may be added to the map, must not be null
<DD><CODE>valueType
</CODE> - the type of values which may be added to the map, must not be null
2208 <DT><B>Returns:
</B><DD>a typed map backed by the specified map
</DL>
2213 <A NAME=
"transformedSortedMap(java.util.SortedMap, org.apache.commons.collections.Transformer, org.apache.commons.collections.Transformer)"><!-- --></A><H3>
2214 transformedSortedMap
</H3>
2216 public static java.util.SortedMap
<B>transformedSortedMap
</B>(java.util.SortedMap
map,
2217 <A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> keyTransformer,
2218 <A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> valueTransformer)
</PRE>
2220 <DD>Returns a transformed sorted map backed by the given map.
2222 This method returns a new sorted map (decorating the specified map) that
2223 will transform any new entries added to it.
2224 Existing entries in the specified map will not be transformed.
2225 If you want that behaviour, see
<A HREF=
"../../../../org/apache/commons/collections/map/TransformedSortedMap.html#decorateTransform(java.util.SortedMap, org.apache.commons.collections.Transformer, org.apache.commons.collections.Transformer)"><CODE>TransformedSortedMap.decorateTransform(java.util.SortedMap, org.apache.commons.collections.Transformer, org.apache.commons.collections.Transformer)
</CODE></A>.
2227 Each object is passed through the transformers as it is added to the
2228 Map. It is important not to use the original map after invoking this
2229 method, as it is a backdoor for adding untransformed objects.
2231 If there are any elements already in the map being decorated, they
2232 are NOT transformed.
2235 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to transform, must not be null, typically empty
<DD><CODE>keyTransformer
</CODE> - the transformer for the map keys, null means no transformation
<DD><CODE>valueTransformer
</CODE> - the transformer for the map values, null means no transformation
2236 <DT><B>Returns:
</B><DD>a transformed map backed by the given map
2238 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the SortedMap is null
</DL>
2243 <A NAME=
"fixedSizeSortedMap(java.util.SortedMap)"><!-- --></A><H3>
2244 fixedSizeSortedMap
</H3>
2246 public static java.util.SortedMap
<B>fixedSizeSortedMap
</B>(java.util.SortedMap
map)
</PRE>
2248 <DD>Returns a fixed-sized sorted map backed by the given sorted map.
2249 Elements may not be added or removed from the returned map, but
2250 existing elements can be changed (for instance, via the
2251 <CODE>Map.put(Object,Object)
</CODE> method).
2254 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map whose size to fix, must not be null
2255 <DT><B>Returns:
</B><DD>a fixed-size map backed by that map
2257 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the SortedMap is null
</DL>
2262 <A NAME=
"lazySortedMap(java.util.SortedMap, org.apache.commons.collections.Factory)"><!-- --></A><H3>
2265 public static java.util.SortedMap
<B>lazySortedMap
</B>(java.util.SortedMap
map,
2266 <A HREF=
"../../../../org/apache/commons/collections/Factory.html" title=
"interface in org.apache.commons.collections">Factory
</A> factory)
</PRE>
2268 <DD>Returns a
"lazy" sorted map whose values will be created on demand.
2270 When the key passed to the returned map's
<CODE>Map.get(Object)
</CODE>
2271 method is not present in the map, then the factory will be used
2272 to create a new object and that object will become the value
2273 associated with that key.
2278 Factory factory = new Factory() {
2279 public Object create() {
2283 SortedMap lazy = MapUtils.lazySortedMap(new TreeMap(), factory);
2284 Object obj = lazy.get(
"test");
2287 After the above code is executed,
<code>obj
</code> will contain
2288 a new
<code>Date
</code> instance. Furthermore, that
<code>Date
</code>
2289 instance is the value for the
<code>"test"</code> key.
2292 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to make lazy, must not be null
<DD><CODE>factory
</CODE> - the factory for creating new objects, must not be null
2293 <DT><B>Returns:
</B><DD>a lazy map backed by the given map
2295 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the SortedMap or Factory is null
</DL>
2300 <A NAME=
"lazySortedMap(java.util.SortedMap, org.apache.commons.collections.Transformer)"><!-- --></A><H3>
2303 public static java.util.SortedMap
<B>lazySortedMap
</B>(java.util.SortedMap
map,
2304 <A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections">Transformer
</A> transformerFactory)
</PRE>
2306 <DD>Returns a
"lazy" sorted map whose values will be created on demand.
2308 When the key passed to the returned map's
<CODE>Map.get(Object)
</CODE>
2309 method is not present in the map, then the factory will be used
2310 to create a new object and that object will become the value
2311 associated with that key. The factory is a
<A HREF=
"../../../../org/apache/commons/collections/Transformer.html" title=
"interface in org.apache.commons.collections"><CODE>Transformer
</CODE></A>
2312 that will be passed the key which it must transform into the value.
2316 Transformer factory = new Transformer() {
2317 public Object transform(Object mapKey) {
2318 return new File(mapKey);
2321 SortedMap lazy = MapUtils.lazySortedMap(new TreeMap(), factory);
2322 Object obj = lazy.get(
"C:/dev");
2325 After the above code is executed,
<code>obj
</code> will contain
2326 a new
<code>File
</code> instance for the C drive dev directory.
2327 Furthermore, that
<code>File
</code> instance is the value for the
2328 <code>"C:/dev"</code> key in the map.
2330 If a lazy map is wrapped by a synchronized map, the result is a simple
2331 synchronized cache. When an object is not is the cache, the cache itself
2332 calls back to the factory Transformer to populate itself, all within the
2333 same synchronized block.
2336 <DT><B>Parameters:
</B><DD><CODE>map
</CODE> - the map to make lazy, must not be null
<DD><CODE>transformerFactory
</CODE> - the factory for creating new objects, must not be null
2337 <DT><B>Returns:
</B><DD>a lazy map backed by the given map
2339 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if the Map or Transformer is null
</DL>
2342 <!-- ========= END OF CLASS DATA ========= -->
2346 <!-- ======= START OF BOTTOM NAVBAR ====== -->
2347 <A NAME=
"navbar_bottom"><!-- --></A>
2348 <A HREF=
"#skip-navbar_bottom" title=
"Skip navigation links"></A>
2349 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
2351 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
2352 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
2353 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
2354 <TR ALIGN=
"center" VALIGN=
"top">
2355 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
2356 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
2357 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
2358 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/MapUtils.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
2359 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
2360 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
2361 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
2362 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
2366 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
2372 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
2373 <A HREF=
"../../../../org/apache/commons/collections/MapIterator.html" title=
"interface in org.apache.commons.collections"><B>PREV CLASS
</B></A>
2374 <A HREF=
"../../../../org/apache/commons/collections/MultiHashMap.html" title=
"class in org.apache.commons.collections"><B>NEXT CLASS
</B></A></FONT></TD>
2375 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
2376 <A HREF=
"../../../../index.html?org/apache/commons/collections/MapUtils.html" target=
"_top"><B>FRAMES
</B></A>
2377 <A HREF=
"MapUtils.html" target=
"_top"><B>NO FRAMES
</B></A>
2378 <SCRIPT type=
"text/javascript">
2381 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
2386 <A HREF=
"../../../../allclasses-noframe.html"><B>All Classes
</B></A>
2393 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
2394 SUMMARY:
NESTED
|
<A HREF=
"#field_summary">FIELD
</A> |
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
2395 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
2396 DETAIL:
<A HREF=
"#field_detail">FIELD
</A> |
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
2399 <A NAME=
"skip-navbar_bottom"></A>
2400 <!-- ======== END OF BOTTOM NAVBAR ======= -->
2403 Copyright ©
2001-
2008 <a href=
"http://www.apache.org/">The Apache Software Foundation
</a>. All Rights Reserved.