// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.math.BigInteger;
import java.util.List;
import java.util.Map;

public class GenericsFun {
    public void something(final Map<String,List<BigInteger>> ml) {
    }
    public static void main(String[] args) throws NoSuchMethodException, SecurityException {
        Method[] m = GenericsFun.class.getMethods();
        for(Method m1 : m) {
            System.out.println(m1.getName());
            for(Type typ : m1.getGenericParameterTypes()) {
                TypeInfo typinf = TypeInfo.analyze(typ);
                System.out.println("  " + typinf);
            }
        }
    }
}
