Add method putAll to put an array of key/value pairs into a map

Bug 30882, suggested by Rafael U. C. Afonso


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131817 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2004-09-22 23:09:54 +00:00
parent a324ca7a63
commit 079c661ea4
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,7 @@ import org.apache.commons.collections.map.UnmodifiableSortedMap;
* </ul>
*
* @since Commons Collections 1.0
* @version $Revision: 1.48 $ $Date: 2004/09/22 23:03:50 $
* @version $Revision: 1.49 $ $Date: 2004/09/22 23:09:54 $
*
* @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
* @author <a href="mailto:nissim@nksystems.com">Nissim Karpenstein</a>
@ -1145,6 +1145,7 @@ public class MapUtils {
* @throws IllegalArgumentException if sub-array or entry matching used and an
* entry is invalid
* @throws ClassCaseException if the array contents is mixed
* @since Commons Collections 3.2
*/
public static Map putAll(Map map, Object[] array) {
map.size(); // force NPE