I have the following method in my project
public void execute(final int apiId, final ResponseHandler handler, final Type type)
and the type is determined using TypeToken as follows
final Type serviceErrorType = new TypeToken<>() {
}.getType();
I went through this link here but couldn't understand completely about Type
and TypeToken
Can anyone please share a link or help understand these two concepts?