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

8
LINES

< > BotCompany Repo | #1013229 // assertSameLength

JavaX fragment (include)

static void assertSameLength(Collection a, Collection b) {
  assertSameLength(null, a, b);
}

static void assertSameLength(S msg, Collection a, Collection b) {
  if (l(a) != l(b))
    fail(msgColon(msg) + "Length differs: " + l(a) + "/" + l(b));
}

Author comment

Began life as a copy of #1012661

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: #1013229
Snippet name: assertSameLength
Eternal ID of this version: #1013229/3
Text MD5: 88cb107441b313b60101caa898afa94a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-28 23:18:48
Source code size: 254 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 344 / 372
Version history: 2 change(s)
Referenced in: [show references]