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

4
LINES

< > BotCompany Repo | #1027058 // runnableToStringShort

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

Libraryless. Click here for Pure Java version (2449L/15K).

1  
sS runnableToStringShort(Runnable r) {
2  
  if (r == null) ret str(r);
3  
  ret shorten(30, simpleSpaces_javaTok(trim(newLinesToSpaces(str(r)))));
4  
}

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: #1027058
Snippet name: runnableToStringShort
Eternal ID of this version: #1027058/2
Text MD5: fecb55bdc43702f7266fa5931d6aeb7b
Transpilation MD5: 3a85a02ab88cadc4f744efb9327c390c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-16 15:51:02
Source code size: 145 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 263 / 355
Version history: 1 change(s)
Referenced in: [show references]