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

27
LINES

< > BotCompany Repo | #1009122 // containsAll

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4589L/25K).

static <A> bool containsAll(Collection<? extends A> a, Collection<A> b) {
  for (A o : b)
    if (!a.contains(o))
      false;
  true;
}

static <A> bool containsAll(Collection<? extends A> a, A... b) {
  for (A o : b)
    if (!a.contains(o))
      false;
  true;
}

sbool containsAll(S a, Cl<S> b) {
  fOr (S o : b)
    if (!contains(a, o))
      false;
  true;
}

sbool containsAll(S a, S... b) {
  fOr (S o : b)
    if (!contains(a, o))
      false;
  true;
}

Author comment

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: 536 / 710
Version history: 3 change(s)
Referenced in: [show references]