Advertisement
codeuniv

Super Type Tokens

Jan 2nd, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. use class TypeReference<T> to pass "List<String>.class" and see it at runtime (same method as for type tokens List<String> arg => f( Integer.class, 5)
  2.  
  3.  
  4. http://gafter.blogspot.com/2006/12/super-type-tokens.html
  5.  
  6. https://habr.com/post/66593/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement