Skip to content

How to create method: public <T> List<T> apiGet(String url, Class<T> clazz) #251

Answered by gastaldi
rob-stoecklein asked this question in Q&A
Discussion options

You must be logged in to vote

You need to call methodSource.addTypeVariable("T");

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rob-stoecklein
Comment options

Answer selected by gastaldi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #250 on August 26, 2022 18:45.