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

5
LINES

< > BotCompany Repo | #1009499 // assertContainsAll

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

Transpiled version (4572L) is out of date.

static <A> void assertContainsAll(Collection<? extends A> a, Collection<A> b) {
  fOr (x : b)
    if (!contains(a, x))
      fail("Collection doesn't contain " + x + ": " + str_shorten(a));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009499
Snippet name: assertContainsAll
Eternal ID of this version: #1009499/5
Text MD5: cdbd5343d5d807bb0b3657bdd9b1325b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-29 05:54:27
Source code size: 195 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 511 / 690
Version history: 4 change(s)
Referenced in: [show references]