package com.github.blindpirate.gogradle.util;

import java.util.Map;

public class MapUtils {
    public static String getString(Map<String, Object> map, String key) {
        return org.gradle.internal.impldep.org.apache.commons.collections.MapUtils
                .getString(map, key);
    }

    public static boolean getBooleanValue(Map<String, Object> map, String key, boolean defaultValue) {
        return org.gradle.internal.impldep.org.apache.commons.collections.MapUtils
                .getBooleanValue(map, key, defaultValue);
    }


}

@@ -40,16 +40,87 @@
 .util;%0A%0A
+import org.apache.commons.lang3.tuple.Pair;%0A%0Aimport java.util.HashMap;%0A
 import j
@@ -612,10 +612,620 @@
     %7D%0A%0A%0A
+    public static %3CT%3E T getValue(Map%3CString, Object%3E map, String key, Class%3CT%3E clazz) %7B%0A        return (T) map.get(key);%0A    %7D%0A%0A    public static %3CK, V%3E Map%3CK, V%3E asMap(K k1, V v1, K k2, V v2) %7B%0A        return asMap(new Pair%5B%5D%7BPair.of(k1, v1), Pair.of(k2, v2)%7D);%0A    %7D%0A%0A    private static %3CK, V%3E Map%3CK, V%3E asMap(Pair%3CK, V%3E... entries) %7B%0A        Map%3CK, V%3E ret = new HashMap%3C%3E();%0A        for (Pair%3CK, V%3E entry : entries) %7B%0A            ret.put(entry.getLeft(), entry.getRight());%0A        %7D%0A        return ret;%0A    %7D%0A%0A    public static %3CK, V%3E Map%3CK, V%3E asMap(K k, V v) %7B%0A        return asMap(Pair.of(k, v));%0A    %7D%0A
 %7D%0A

add some util methods