Libraryless. Click here for Pure Java version (2673L/17K).
static Type genericFieldType(O o, S field) { Field f = getField(o, field); ret f == null ? null : f.getGenericType(); }
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: | 263 / 358 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |