Libraryless. Click here for Pure Java version (10180L/56K).
1 | static Field findFieldInInterfaces(Class c, S field) { |
2 | if (c == null) null; |
3 | for (intf : allInterfacesImplementedBy(c)) |
4 | try object getField(intf, field); |
5 | null; |
6 | } |
Began life as a copy of #1006561
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1036539 |
Snippet name: | findFieldInInterfaces - get a Field from implemented interfaces |
Eternal ID of this version: | #1036539/1 |
Text MD5: | 47ec2b153b9e16c10c0685538ee743e2 |
Transpilation MD5: | 2fc4d5be327e94f3c2740783232be1c6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-01-31 21:14:26 |
Source code size: | 175 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 142 / 181 |
Referenced in: | [show references] |