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

6
LINES

< > BotCompany Repo | #1016648 // totalByteCapacityOfStringBuffers

JavaX fragment (include)

static long totalByteCapacityOfStringBuffers(Iterable<StringBuffer> l) {
  long n = 0;
  for (StringBuffer s : unnull(l))
    if (s != null) n += s.capacity()*2;
  ret n;
}

Author comment

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: 200 / 236
Referenced in: [show references]