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

5
LINES

< > BotCompany Repo | #1019392 // initHashSetAndAdd

JavaX fragment (include)

static <A> Set<A> initHashSetAndAdd(Set<A> set, A a) {
  if (set == null) set = new HashSet;
  set.add(a);
  ret set;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019392
Snippet name: initHashSetAndAdd
Eternal ID of this version: #1019392/2
Text MD5: b81ebd46e300550c6aa052037d301827
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-04 19:21:15
Source code size: 123 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 373 / 410
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1020941 - createOrAddToSyncList
#1023418 - initCIMapAndAdd