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

4
LINES

< > BotCompany Repo | #1007299 - addAndReturn - add element to a collection and return the element

JavaX fragment (include)

static <B, A extends B> A addAndReturn(Collection<B> c, A a) {
  if (c != null) c.add(a);
  ret a;
}

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1007299
Snippet name: addAndReturn - add element to a collection and return the element
Eternal ID of this version: #1007299/1
Text MD5: c48237704755391f5d4cc3d6c8886090
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-14 23:39:00
Source code size: 103 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 256 / 272
Referenced in: [show references]

Formerly at http://tinybrain.de/1007299 & http://1007299.tinybrain.de