Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1031955 // lookupInterface - synonym of lookupDynamicInterface. find interface implementation in DynamicObject or object

JavaX fragment (include)

1  
// We even allow overriding existing interface implementations
2  
static <A> A nuLike lookupInterface(Class<A> intrface, O o) {
3  
  ret lookupDynamicInterface(intrface, o);
4  
}
5  
6  
7  
8  
9  
static <A> A nuLike lookupInterface(O o, Class<A> intrface) {
10  
  ret lookupDynamicInterface(o, intrface);
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1031955
Snippet name: lookupInterface - synonym of lookupDynamicInterface. find interface implementation in DynamicObject or object
Eternal ID of this version: #1031955/4
Text MD5: f4f94e039659747b14b40c44ba6a66d4
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-10-04 18:32:27
Source code size: 290 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 161 / 196
Version history: 3 change(s)
Referenced in: [show references]