Libraryless. Click here for Pure Java version (5270L/29K).
1 | static L<Method> findNonDefaultInterfaceMethods(Class intrface) {
|
2 | if (!isInterface(intrface)) null; |
3 | new L<Method> l; |
4 | _MethodCache cache = getMethodCache(intrface); |
5 | |
6 | Class c = intrface; |
7 | do {
|
8 | for (Method m : c.getDeclaredMethods()) |
9 | if (m.getDeclaringClass() != O.class |
10 | && !m.isDefault() && !isStaticMethod(m)) |
11 | l.add(m); |
12 | |
13 | c = c.getSuperclass(); |
14 | } while (c != null); |
15 | |
16 | ret l; |
17 | } |
Began life as a copy of #1027670
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034765 |
| Snippet name: | findNonDefaultInterfaceMethods |
| Eternal ID of this version: | #1034765/9 |
| Text MD5: | b6d09dcf3804f2c327709f95066b25fb |
| Transpilation MD5: | 6e75c30ae02f87c4e44113dadfbdf343 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-08 06:21:06 |
| Source code size: | 436 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 435 / 605 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |