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

5
LINES

< > BotCompany Repo | #1027666 // objectMethodToIF1

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2198L/14K).

static IF1 objectMethodToIF1(O object, S method) {
  ret object == null ? null : new IF1 {
    public O get(O a) { ret call(object, method, a); }
  };
}

Author comment

Began life as a copy of #1024898

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027666
Snippet name: objectMethodToIF1
Eternal ID of this version: #1027666/3
Text MD5: 3ad8d59f143e60c3a572ab7bbcf6bc5f
Transpilation MD5: f638124be12bf748263cc4d5daa86e00
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-29 23:04:06
Source code size: 156 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 191 / 242
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1027667 - objectMethodToIF0
#1027668 - objectMethodToIVF1