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

11
LINES

< > BotCompany Repo | #1007435 - putAll - add map b to map a and return a

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (31L) is out of date.

static <A, B> Map<A, B> putAll(Map<A, B> a, Map<? extends A,? extends B> b) {
  if (a != null && b != null) a.putAll(b);
  ret a;
}

ifclass MultiMap
static <A, B> MultiMap<A, B> putAll(MultiMap<A, B> a, Map<? extends A,? extends B> b) {
  if (a != null) a.putAll((Map) b);
  ret a;
}
endif

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1007435
Snippet name: putAll - add map b to map a and return a
Eternal ID of this version: #1007435/5
Text MD5: 729a8f42620a5d1f9f08c949921ac1c3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-02 23:39:02
Source code size: 300 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 341 / 354
Version history: 4 change(s)
Referenced in: [show references]

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