Libraryless. Click here for Pure Java version (2673L/17K).
1 | static Type genericFieldType(O o, S field) { |
2 | Field f = getField(o, field); |
3 | ret f == null ? null : f.getGenericType(); |
4 | } |
Began life as a copy of #1006562
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029586 |
Snippet name: | genericFieldType - get generic type of an object's/class's field (type including type parameters) |
Eternal ID of this version: | #1029586/1 |
Text MD5: | a98c394bc433d4ce8663963959007796 |
Transpilation MD5: | 452cf85cce60332650fde5bcffd9060d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-27 12:57:13 |
Source code size: | 126 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 264 / 360 |
Referenced in: | [show references] |