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

11
LINES

< > BotCompany Repo | #1009324 // cleanUpAndClear - clean up list elements and clear list (also map)

JavaX fragment (include)

static void cleanUpAndClear(Collection c) {
  if (c == null) ret;
  cleanUp(c);
  c.clear();
}

static void cleanUpAndClear(Map map) {
  if (map == null) ret;
  cleanUp(map);
  map.clear();
}

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: #1009324
Snippet name: cleanUpAndClear - clean up list elements and clear list (also map)
Eternal ID of this version: #1009324/3
Text MD5: 1bd1a994dfcc7a2bc6f6aa1995134a73
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-29 14:17:31
Source code size: 201 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 469 / 495
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)