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

5
LINES

< > BotCompany Repo | #1002097 // replaceCollection

JavaX fragment (include)

static <A> void replaceCollection(Collection<A> dest, Collection<A> src) {
  if (dest == src) ret;
  dest.clear();
  if (src != null) dest.addAll(src);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002097
Snippet name: replaceCollection
Eternal ID of this version: #1002097/3
Text MD5: 070c52a6c40b268e1a55f0772e1873ee
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-02-20 16:15:00
Source code size: 157 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 768 / 2116
Version history: 2 change(s)
Referenced in: [show references]