If I have a class with a constructor that takes a parametized generic type:
public class Foo {
public Foo(Map<String, Object> data) {
...
}
}
... how do I reference that parametized Map's class if I want to call:
Constructor constructor = cls.getConstructor(/*the Map class! */)
(Where cls is the Foo class.)
I want to do something like:
Constructor constructor = cls.getConstructor(Map<String,Object>.class);
... but that doesn't work.
I'm sure there's a simple answer to this!