Libraryless. Click here for Pure Java version (4559L/25K).
1 | static Runnable runnableWithCustomToString(S s, Runnable r) {
|
2 | if (r == null) null; |
3 | ret new Runnable {
|
4 | run { r.run(); }
|
5 | toString { ret unnull(s); }
|
6 | }; |
7 | } |
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: | 337 / 455 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |