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

5
LINES

< > BotCompany Repo | #1026009 // setField_trueIfChanged

JavaX fragment (include)

sbool setField_trueIfChanged(Field f, O o, O value) ctex {
  if (eq(f.get(o), value)) false;
  f.set(o, value);
  true;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026009
Snippet name: setField_trueIfChanged
Eternal ID of this version: #1026009/2
Text MD5: 6c8b9bcdd5fb78483d87487ed1ffadf2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-07 13:47:12
Source code size: 125 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 233 / 284
Version history: 1 change(s)
Referenced in: [show references]