How to call the 'test' method below?
static <T> T test(Class<Template<T>> type) {
// ...
}
static class Template<T> {
T data;
}
Can't call like this:
test(Template<String>.class);
Please help
How to call the 'test' method below?
static <T> T test(Class<Template<T>> type) {
// ...
}
static class Template<T> {
T data;
}
Can't call like this:
test(Template<String>.class);
Please help