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

6
LINES

< > BotCompany Repo | #1015755 // mapPut_trueIfChanged

JavaX fragment (include)

static <A, B> bool mapPut_trueIfChanged(Map<A, B> map, A key, B value) {
  if (map != null && key != null && value != null)
    if (eq(map.get(key), value)) false;
    else ret true with map.put(key, value);
  false;
}

Author comment

Began life as a copy of #1007227

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: #1015755
Snippet name: mapPut_trueIfChanged
Eternal ID of this version: #1015755/2
Text MD5: 9dfaaa70a2c31e30a141281f57d1686c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-27 00:20:45
Source code size: 223 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 392 / 397
Version history: 1 change(s)
Referenced in: [show references]