1 | static long totalByteCapacityOfStringBuffers_generic(Iterable l) { |
2 | long n = 0; |
3 | for (O s : unnull(l)) |
4 | if (s != null) n += toInt(callOpt(s, 'capacity))*2; |
5 | ret n; |
6 | } |
Began life as a copy of #1016648
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020455 |
Snippet name: | totalByteCapacityOfStringBuffers_generic - also takes NotifyingStringBuffers |
Eternal ID of this version: | #1020455/1 |
Text MD5: | 989128614f5c6241448e3cf67f476d03 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-22 20:28:30 |
Source code size: | 176 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 240 / 282 |
Referenced in: | [show references] |