Libraryless. Click here for Pure Java version (2775L/16K).
1 | static <A> Cl<Class<? extends A>> collectFirstMethodArgumentsSubclassing(Cl<Method> methods, Class<A> type) {
|
2 | ret mapNonNulls(methods, m -> {
|
3 | Class c = firstMethodArgumentType(m); |
4 | ret isSubclassOf(c, type) ? c : null; |
5 | }); |
6 | } |
Began life as a copy of #1030755
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030767 |
| Snippet name: | collectFirstMethodArgumentsSubclassing |
| Eternal ID of this version: | #1030767/1 |
| Text MD5: | eda376a1b7bb5cdb4561b034c1c57bbc |
| Transpilation MD5: | 6f3e8cf2b8b522b87f1ddbf581b791ad |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-03-19 15:43:55 |
| Source code size: | 240 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 368 / 505 |
| Referenced in: | [show references] |