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

17
LINES

< > BotCompany Repo | #1014725 // add - add Component to Container, add element to collection, set bit in BitSet

JavaX fragment (include)

1  
static void add(BitSet bs, int i) {
2  
  bs.set(i);
3  
}
4  
5  
static <A> bool add(Collection<A> c, A a) {
6  
  ret c != null && c.add(a);
7  
}
8  
9  
ifndef Android
10  
static void add(Container c, Component x) {
11  
  addToContainer(c, x);
12  
}
13  
endifndef
14  
15  
static long add(AtomicLong l, long b) {
16  
  ret l.addAndGet(b);
17  
}

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: #1014725
Snippet name: add - add Component to Container, add element to collection, set bit in BitSet
Eternal ID of this version: #1014725/6
Text MD5: 9ee0c0d31e7d0459a5a271f2b7d2369d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-07 08:19:33
Source code size: 303 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 613 / 1109
Version history: 5 change(s)
Referenced in: [show references]