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

5
LINES

< > BotCompany Repo | #1015299 // setVarIfNeq

JavaX fragment (include)

static <A> bool setVarIfNeq(Var<A> v, A value) {
  if (v == null || eq(v!, value)) false;
  v.set(value);
  true;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015299
Snippet name: setVarIfNeq
Eternal ID of this version: #1015299/3
Text MD5: 337a408d7e2c50d58284c09bf20692c9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-16 16:26:50
Source code size: 119 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 339 / 383
Version history: 2 change(s)
Referenced in: [show references]