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();
我在这里看过这个link,但对Type
和TypeToken
不能完全理解
任何人都可以分享一个链接或帮助理解这两个概念吗?