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)

1  
svoid clear(Collection c) {
2  
  if (c != null) c.clear();
3  
}
4  
5  
svoid clear(Map map) {
6  
  if (map != null) map.clear();
7  
}

download  show line numbers  debug dex   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, podlckwnjdmb, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, 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: 247 / 274
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1010896 & http://1010896.tinybrain.de