I have a `convert` method, which takes a String and a class as arguments and constructs an object of the given class, which will be returned.
The usage should look like this
Something s = Converter.convert("...", Something.class)
Is it possible to express this with Java generics?
以上就是How to make the generic return type of a method dependend of the parameter type?的详细内容，更多请关注web前端其它相关文章！