All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dreamroute.reflect.MethodFactory Maven / Gradle / Ivy

package com.github.dreamroute.reflect;

import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;

public class MethodFactory {

    private MethodFactory() {}

    private static final ConcurrentMap, Map> methodMap = new ConcurrentHashMap<>();

    public static Map findForClass(Class cls) {
        return methodMap.computeIfAbsent(cls, ClassUtil::getClassMethods);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy