Libraryless. Click here for Pure Java version (4589L/25K).
1 | static <A> bool containsAll(Collection<? extends A> a, Collection<A> b) { |
2 | for (A o : b) |
3 | if (!a.contains(o)) |
4 | false; |
5 | true; |
6 | } |
7 | |
8 | static <A> bool containsAll(Collection<? extends A> a, A... b) { |
9 | for (A o : b) |
10 | if (!a.contains(o)) |
11 | false; |
12 | true; |
13 | } |
14 | |
15 | sbool containsAll(S a, Cl<S> b) { |
16 | fOr (S o : b) |
17 | if (!contains(a, o)) |
18 | false; |
19 | true; |
20 | } |
21 | |
22 | sbool containsAll(S a, S... b) { |
23 | fOr (S o : b) |
24 | if (!contains(a, o)) |
25 | false; |
26 | true; |
27 | } |
Began life as a copy of #1001927
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: | #1009122 |
Snippet name: | containsAll |
Eternal ID of this version: | #1009122/4 |
Text MD5: | 7ef09fd2e92fb0bfb724d19890b3cd5a |
Transpilation MD5: | 3896cbb18ef33079f72be4b5a05c35f2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-07-24 07:46:48 |
Source code size: | 488 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 538 / 715 |
Version history: | 3 change(s) |
Referenced in: | [show references] |