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

11
LINES

< > BotCompany Repo | #1029122 - withStringBuilder

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

Libraryless. Click here for Pure Java version (49L/1K).

sS withStringBuilder(IVF1<StringBuilder> f) {
  new StringBuilder buf;
  if (f != null) f.get(buf);
  ret str(buf);
}

sS withStringBuilder(int expectedLength, IVF1<StringBuilder> f) {
  StringBuilder buf = new(expectedLength);
  if (f != null) f.get(buf);
  ret str(buf);
}

download  show line numbers  debug dex   

Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029122
Snippet name: withStringBuilder
Eternal ID of this version: #1029122/2
Text MD5: b3ea8d901f63b1b08da6d47a83e200e8
Transpilation MD5: bc56988ac13c7bb172ca36f05cd8770e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-01 16:07:45
Source code size: 284 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 9 / 29
Version history: 1 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1029122 & http://1029122.tinybrain.de