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

17
LINES

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

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

Libraryless. Click here for Pure Java version (52L/1K).

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

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

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: #1007435
Snippet name: putAll - add map b to map a and return a
Eternal ID of this version: #1007435/6
Text MD5: 2fe5e97e606565d6a14abbc523b29ddb
Transpilation MD5: d6e1abd24a78a61c0fca0fb3f5ef153d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-05 14:14:28
Source code size: 414 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 659 / 772
Version history: 5 change(s)
Referenced in: [show references]