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

4
LINES

< > BotCompany Repo | #1008713 // doublePut - put value in map with two keys

JavaX fragment (include)

static <A, B> void doublePut(Map<A, B> map, A key1, A key2, B value) {
  map.put(key1, value);
  map.put(key2, value);
}

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: #1008713
Snippet name: doublePut - put value in map with two keys
Eternal ID of this version: #1008713/1
Text MD5: da5f6795e143fa30ba105076ea945597
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-30 02:35:57
Source code size: 123 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 529 / 603
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1013305 - putInTwoMaps - put key/value pair in two maps
#1018375 - mapPutMultipleKeys - put value in map with multiple keys from varargs