1 | static bool containsInstance(Iterable i, Class c) { |
2 | if (i != null) for (O o : i) |
3 | if (isInstanceX(c, o)) |
4 | true; |
5 | false; |
6 | } |
Began life as a copy of #1004443
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005521 |
Snippet name: | containsInstance - does a collection contain an instance of a class? |
Eternal ID of this version: | #1005521/1 |
Text MD5: | db36b359642d6dca784bb817f30ce390 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-25 12:22:43 |
Source code size: | 137 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 676 / 934 |
Referenced in: | [show references] |