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

9
LINES

< > BotCompany Repo | #1014404 - removeAll

JavaX fragment (include)

static <A> void removeAll(Collection<A> a, Collection<A> b) {
  if (a != null && b != null) a.removeAll(b);
}

static <A, B> void removeAll(Map<A, B> a, Collection<A> b) {
  if (a != null && b != null)
    for (A x : b)
      a.remove(x);
}

Author comment

Began life as a copy of #1011634

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1014404
Snippet name: removeAll
Eternal ID of this version: #1014404/3
Text MD5: 85b4faf6bf1cf3720d1f14847cbc0dc5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-10 16:54:38
Source code size: 248 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 147 / 175
Version history: 2 change(s)
Referenced in: [show references]

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