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

5
LINES

< > BotCompany Repo | #1017833 // canPutStrictlyIC - return true if value can be put strictly (not overwriting anything)

JavaX fragment (include)

static <A> bool canPutStrictlyIC(Map<A, S> map, A key, S value) {
  if (!(map != null && key != null && value != null)) true;
  S old = map.get(key);
  ret old == null || eqic(old, value);
}

Author comment

Began life as a copy of #1017590

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017833
Snippet name: canPutStrictlyIC - return true if value can be put strictly (not overwriting anything)
Eternal ID of this version: #1017833/3
Text MD5: 2984c996b45abf73c5e0ac6a841007a2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-15 15:57:27
Source code size: 194 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 288 / 317
Version history: 2 change(s)
Referenced in: [show references]