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

4
LINES

< > BotCompany Repo | #1011471 // assertSize - assert collection size

JavaX fragment (include)

static <A extends Collection> A assertSize(int n, A real) {
  assertEquals(n, l(real));
  ret real;
}

Author comment

Began life as a copy of #1011426

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: #1011471
Snippet name: assertSize - assert collection size
Eternal ID of this version: #1011471/1
Text MD5: 740a098a6994d73242c8a5d4c21f783d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-29 23:18:58
Source code size: 104 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 416 / 433
Referenced in: [show references]