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

12
LINES

< > BotCompany Repo | #1001455 // LoggingStringList

JavaX fragment (include)

static class LoggingStringList extends ArrayList<S> {
  S fileName;
  
  *(S *fileName) {}
  
  public boolean add(S s) {
    boolean result = super.add(s);
    S line = "add: " + s;
    logQuoted(new File(programDir(), fileName), line);
    return result;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001455
Snippet name: LoggingStringList
Eternal ID of this version: #1001455/1
Text MD5: cb98fb1678c16f8c042497d8ba7ebdd6
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-10-16 20:24:00
Source code size: 273 bytes / 12 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 484 / 669
Referenced in: [show references]