1 | static <A> void moveElementFromCollectionToCollection(A a, Collection<A> src, Collection<A> target) {
|
2 | if (src != null) src.remove(a); |
3 | if (target != null) target.add(a); |
4 | } |
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: | #1017347 |
| Snippet name: | moveElementFromCollectionToCollection |
| Eternal ID of this version: | #1017347/2 |
| Text MD5: | b85ede65f63ce1ce201fc47096cf0721 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-17 21:47:50 |
| Source code size: | 177 bytes / 4 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 607 / 654 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |