src/org/nutz/mapl/impl/MaplMerge.java
@SuppressWarnings({"unchecked", "rawtypes"})
    private static Object mergeMap(Object... objs) {
        Map obj = new LinkedHashMap();
        for (int i = 0; i < objs.length; i++) {
            Map map = (Map) objs[i];
            for (Object key : map.keySet()) {
                Object objval = obj.get(key);
                Object val = map.get(key);
                if (objval != null && (val instanceof List || val instanceof Map)) {
                    val = merge(objval, val);
                }
                obj.put(key, val);
            }
        }
        return obj;
    }
@SuppressWarnings({"unchecked", "rawtypes"})
    private static Object mergeMap(Object... objs) {
        Map obj = new LinkedHashMap();
        for (int i = 0; i < objs.length; i++) {
            Map map = (Map) objs[i];
            for (Object key : map.keySet()) {
                Object objval = obj.get(key);
                Object val = map.get(key);
                if (objval != null && (val instanceof List || val instanceof Map)) {
                    val = merge(objval, val);
                }
                obj.put(key, val);
            }
        }
        return obj;
    }
@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) private static Object mergeMap ( Object ... objs ) { Map obj = new LinkedHashMap ( ) ; for ( int i = 0 ; i < objs . length ; i ++ ) { Map map = ( Map ) objs [ i ] ; for ( Object key : map . keySet ( ) ) { Object objval = obj . get ( key ) ; Object val = map . get ( key ) ; if ( objval != null && ( val instanceof List || val instanceof Map ) ) { val = merge ( objval , val ) ; } obj . put ( key , val ) ; } } return obj ; }
map合并

@param objs
@return
map合并