Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可否实现一个字符串到Type的解析器呢 #4

Open
halflife3 opened this issue May 11, 2018 · 0 comments
Open

可否实现一个字符串到Type的解析器呢 #4

halflife3 opened this issue May 11, 2018 · 0 comments

Comments

@halflife3
Copy link

例如 String typeStr = "java.util.Map<java.lang.String, java.util.List<java.lang.String[]>>"
可以将typeStr 转化成Type , 效果和这个一样:
Type type = TypeBuilder
.newInstance(Map.class)
.addTypeParam(String.class)
.beginSubType(List.class)
.addTypeParam(List[].class)
.endSubType()
.build();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant