1 | static long totalByteCapacityOfStringBuffers(Iterable<StringBuffer> l) { |
2 | long n = 0; |
3 | for (StringBuffer s : unnull(l)) |
4 | if (s != null) n += s.capacity()*2; |
5 | ret n; |
6 | } |
Began life as a copy of #1016647
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016648 |
Snippet name: | totalByteCapacityOfStringBuffers |
Eternal ID of this version: | #1016648/1 |
Text MD5: | 3c131dd233c0a2b2f72fb3aedb4863d4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-26 15:25:35 |
Source code size: | 177 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 264 / 299 |
Referenced in: | [show references] |