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

7
LINES

< > BotCompany Repo | #1033718 // runnableWithCustomToString

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

Libraryless. Click here for Pure Java version (4559L/25K).

static Runnable runnableWithCustomToString(S s, Runnable r) {
  if (r == null) null;
  ret new Runnable {
    run { r.run(); }
    toString { ret unnull(s); }
  };
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1033718
Snippet name: runnableWithCustomToString
Eternal ID of this version: #1033718/2
Text MD5: 19f30d5dade564c691c8bed542ef2e29
Transpilation MD5: 14108958731e605fc0aa4465aaf272fa
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-12-28 20:36:23
Source code size: 171 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 62 / 103
Version history: 1 change(s)
Referenced in: [show references]