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

7
LINES

< > BotCompany Repo | #1015632 // incAtomicInt (returns new value)

JavaX fragment (include)

static int incAtomicInt(AtomicInteger i) {
  ret i.incrementAndGet();
}

static int incAtomicInt(AtomicInteger i, int delta) {
  ret i.addAndGet(delta);
}

Author comment

Began life as a copy of #1011793

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015632
Snippet name: incAtomicInt (returns new value)
Eternal ID of this version: #1015632/4
Text MD5: 09a5887b4d1f70845aa0c4fdbef330b8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-06 04:26:30
Source code size: 160 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 363 / 418
Version history: 3 change(s)
Referenced in: [show references]