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

5
LINES

< > BotCompany Repo | #1020858 // putMultipleKeys - put value in map with multiple keys

JavaX fragment (include)

static <A, B> void putMultipleKeys(Map<A, B> map, Collection<A> keys, B value) {
  if (map == null || keys == null) ret;
  for (A key : keys)
    map.put(key, value);
}

Author comment

Began life as a copy of #1018375

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020858
Snippet name: putMultipleKeys - put value in map with multiple keys
Eternal ID of this version: #1020858/1
Text MD5: 872562dc30284bad4c67c2e5b2a8d320
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-06 11:41:43
Source code size: 172 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 286 / 343
Referenced in: [show references]