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

20
LINES

< > BotCompany Repo | #1009122 - containsAll

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

Libraryless. Click here for Pure Java version (2567L/16K).

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, 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 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1009122
Snippet name: containsAll
Eternal ID of this version: #1009122/3
Text MD5: 4e8cc7fc4beb32286e6721a98a427a0f
Transpilation MD5: 7e79de1a7e889b4254aa6b2025c5da47
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-05 16:49:52
Source code size: 382 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 318 / 415
Version history: 2 change(s)
Referenced in: [show references]

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