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

10
LINES

< > BotCompany Repo | #1005613 // callFOpt

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

Libraryless. Click here for Pure Java version (2527L/16K).

static O callFOpt(O f, O... args) {
  if (f == null) ret null;
  if (f instanceof Runnable) {
    ((Runnable) f).run();
    ret null;
  } else if (f instanceof S)
    ret callOpt(mc(), (S) f, args);
  else
    ret callOpt(f, "get", args);
}

Author comment

Began life as a copy of #1003313

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1005613
Snippet name: callFOpt
Eternal ID of this version: #1005613/1
Text MD5: e4229fa67664b9dbf7164f3bdc9867b3
Transpilation MD5: d4ca6c2419912ee7d68adc5f99e8471b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-11-29 16:56:39
Source code size: 249 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 556 / 659
Referenced in: [show references]