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

5
LINES

< > BotCompany Repo | #1009927 // copyMap - copy all elements of one map to another, clearing the second one first

JavaX fragment (include)

static <A, B> void copyMap(Map<? extends A, ? extends B> a, Map<A, B> b) {
  if (a == null || b == null) ret;
  b.clear();
  b.putAll(a);
}

Author comment

Began life as a copy of #1009526

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: #1009927
Snippet name: copyMap - copy all elements of one map to another, clearing the second one first
Eternal ID of this version: #1009927/3
Text MD5: 8d1c1f4226c5054bca0185b69ced87dc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-26 20:31:21
Source code size: 143 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 535 / 526
Version history: 2 change(s)
Referenced in: [show references]