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

7
LINES

< > BotCompany Repo | #1010896 // clear - clear a collection or map

JavaX fragment (include)

svoid clear(Collection c) {
  if (c != null) c.clear();
}

svoid clear(Map map) {
  if (map != null) map.clear();
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010896
Snippet name: clear - clear a collection or map
Eternal ID of this version: #1010896/3
Text MD5: add449c137c4a5b34e4d5d354816307f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-20 13:12:25
Source code size: 121 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 612 / 659
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)