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)

// We even allow overriding existing interface implementations
static <A> A nuLike lookupInterface(Class<A> intrface, O o) {
  ret lookupDynamicInterface(intrface, o);
}




static <A> A nuLike lookupInterface(O o, Class<A> intrface) {
  ret lookupDynamicInterface(o, intrface);
}

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: 99 / 129
Version history: 3 change(s)
Referenced in: [show references]