static Class getTypeArgumentAsClass(Type type) { if (type cast ParameterizedType) ret typeToClass(first(type.getActualTypeArguments())); null; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1029587 |
| Snippet name: | getTypeArgumentAsClass |
| Eternal ID of this version: | #1029587/1 |
| Text MD5: | f67223e40d02e0e82dbdf27a23f8fde3 |
| Author: | stefan |
| Category: | javax / reflection |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-08-27 13:01:11 |
| Source code size: | 156 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 555 / 568 |
| Referenced in: | [show references] |