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

4
LINES

< > BotCompany Repo | #1029236 // putIfKeyNotEqualToValue

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (45L/1K).

svoid <A> putIfKeyNotEqualToValue(Map<A> map, A key, A value) {
  if (map == null || eq(key, value)) ret;
  map.put(key, value);
}

Author comment

Began life as a copy of #1021396

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1029236
Snippet name: putIfKeyNotEqualToValue
Eternal ID of this version: #1029236/4
Text MD5: 874c969a070db5456bce4e9943e8e7b2
Transpilation MD5: 371cda534dd46968eca66783790443cb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-26 20:52:20
Source code size: 133 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 125 / 198
Version history: 3 change(s)
Referenced in: [show references]