I have the following function
EDIT: Changed int to class Long
protected <T> ApiResponse<T> getApiResponse(Object obj, Class<T> clasx)
How can I pass List<Long> class as the second argument?
Can I pass List<Long>.class but that is not working?
Type erasure means that you can only pass
List.class.From the linked documentation: