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

6
LINES

< > BotCompany Repo | #1020455 // totalByteCapacityOfStringBuffers_generic - also takes NotifyingStringBuffers

JavaX fragment (include)

static long totalByteCapacityOfStringBuffers_generic(Iterable l) {
  long n = 0;
  for (O s : unnull(l))
    if (s != null) n += toInt(callOpt(s, 'capacity))*2;
  ret n;
}

Author comment

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: 239 / 281
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)