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

5
LINES

< > BotCompany Repo | #1018491 // ExpectLength

JavaX fragment (include)

1  
srecord ExpectLength(int l) extends Expecter {
2  
  bool check(O o) {
3  
    ret (o == null || o instanceof Collection || o instanceof L) && l(o) == l;
4  
  }
5  
}

Author comment

Began life as a copy of #1018484

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018491
Snippet name: ExpectLength
Eternal ID of this version: #1018491/1
Text MD5: b7b38e3545ef833f1f36e7e0b4e6b082
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-01 22:22:56
Source code size: 155 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 335 / 875
Referenced in: [show references]