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

8
LINES

< > BotCompany Repo | #1005528 // toRunnable - convert function object to Runnable

JavaX fragment (include)

static Runnable toRunnable(final O o) {
  if (o == null) null;
  if (o instanceof Runnable) ret (Runnable) o;
  ifndef callF_legacy
  if (o instanceof S) fail("callF_legacy");
  endifndef
  ret r { callF(o) };
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005528
Snippet name: toRunnable - convert function object to Runnable
Eternal ID of this version: #1005528/3
Text MD5: ddd8e92334658087894538b5d6f56219
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-13 04:06:25
Source code size: 218 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 594 / 696
Version history: 2 change(s)
Referenced in: [show references]