1 | static <B, A extends Collection<B>> A addAndReturnCollection(A c, B a) { |
2 | if (c != null) c.add(a); |
3 | ret c; |
4 | } |
Began life as a copy of #1007299
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018571 |
Snippet name: | addAndReturnCollection - add element to a collection and return the collection |
Eternal ID of this version: | #1018571/2 |
Text MD5: | 964d7bb96483d97ee1389f29cfa2a4fe |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-06 04:17:40 |
Source code size: | 113 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 426 / 459 |
Version history: | 1 change(s) |
Referenced in: | [show references] |