static void removeInstances(L l, Class c) { if (l == null || c == null) ret; for i over l: if (isInstanceX(c, l.get(i))) l.remove(i--); } static void removeInstances(L l, S className) { removeInstances(l, getClassNamed(className)); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1008775 |
| Snippet name: | removeInstances - remove all instances of a class from list |
| Eternal ID of this version: | #1008775/2 |
| Text MD5: | 0edae5d5e1ac27a417aa1f426527cab9 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-06-03 03:03:47 |
| Source code size: | 252 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 660 / 713 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |