1 | static long totalByteSizeOfCharSequences(Iterable<? extends CharSequence> l) { |
2 | long n = 0; |
3 | for (CharSequence s : unnull(l)) |
4 | n += l(s)*2; |
5 | ret n; |
6 | } |
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: | #1016645 |
Snippet name: | totalByteSizeOfCharSequences - works correctly for StringBuffer etc. (not for String) |
Eternal ID of this version: | #1016645/2 |
Text MD5: | 74f652a08045e43395406edf75b12991 |
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:21:39 |
Source code size: | 160 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 308 / 338 |
Version history: | 1 change(s) |
Referenced in: | [show references] |