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

6
LINES

< > BotCompany Repo | #1022373 // mapPut_trueIfChangedIC

JavaX fragment (include)

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

Author comment

Began life as a copy of #1015755

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: #1022373
Snippet name: mapPut_trueIfChangedIC
Eternal ID of this version: #1022373/1
Text MD5: 57548c9f47fadb9ea20a098485da6fa5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-16 11:47:51
Source code size: 224 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 277 / 299
Referenced in: [show references]