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

4
LINES

< > BotCompany Repo | #1013305 // putInTwoMaps - put key/value pair in two maps

JavaX fragment (include)

static <A, B> void putInTwoMaps(Map<A, B> map1, Map<A, B> map2, A key, B value) {
  map1.put(key, value);
  map2.put(key, value);
}

Author comment

Began life as a copy of #1008713

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: #1013305
Snippet name: putInTwoMaps - put key/value pair in two maps
Eternal ID of this version: #1013305/1
Text MD5: d37cf7c48e45ff678fcceebcc99be6af
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-31 19:34:27
Source code size: 134 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 321 / 376
Referenced in: [show references]